Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 225.6 MB / 234.8 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009887/0.0009889, allocations: 101 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2441/0.2441, allocations: 45.17 MB / 383.8 MB, free: 280 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.792e-05/1.81e-05, allocations: 4 kB / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1266, allocations: 63.25 MB / 0.5045 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4285/0.5552, allocations: 89.08 MB / 0.5914 GB, free: 13.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/0.5555, allocations: 70.89 kB / 0.5915 GB, free: 13.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01259/0.5681, allocations: 4.811 MB / 0.5962 GB, free: 9.098 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5681, allocations: 0 / 0.5962 GB, free: 9.098 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.771e-05/0.5681, allocations: 8 kB / 0.5962 GB, free: 9.09 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0007937/0.5689, allocations: 0.5683 MB / 0.5968 GB, free: 8.496 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.569, allocations: 8.031 kB / 0.5968 GB, free: 8.488 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.593e-05/0.5691, allocations: 35.62 kB / 0.5968 GB, free: 8.453 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003113/0.5694, allocations: 268.9 kB / 0.5971 GB, free: 8.172 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.5694, allocations: 11.94 kB / 0.5971 GB, free: 8.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.01e-05/0.5695, allocations: 16 kB / 0.5971 GB, free: 8.145 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003189/0.5698, allocations: 186 kB / 0.5973 GB, free: 8.035 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004091/0.5702, allocations: 259.5 kB / 0.5975 GB, free: 7.832 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.5702, allocations: 8 kB / 0.5975 GB, free: 7.824 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.488e-05/0.5702, allocations: 0 / 0.5975 GB, free: 7.824 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.5703, allocations: 4 kB / 0.5975 GB, free: 7.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001904/0.5722, allocations: 1.227 MB / 0.5987 GB, free: 6.742 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.5727, allocations: 425 kB / 0.5991 GB, free: 6.383 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003113/0.573, allocations: 173.7 kB / 0.5993 GB, free: 6.262 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.5731, allocations: 240 / 0.5993 GB, free: 6.262 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.5731, allocations: 37.73 kB / 0.5993 GB, free: 6.219 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 1.522e-06/0.5731, allocations: 0 / 0.5993 GB, free: 6.219 MB / 394.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008889/0.574, allocations: 379.7 kB / 0.5997 GB, free: 5.906 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.769e-05/0.5741, allocations: 55.41 kB / 0.5998 GB, free: 5.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.5742, allocations: 180.4 kB / 0.5999 GB, free: 5.688 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.5743, allocations: 25.7 kB / 0.6 GB, free: 5.656 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.915e-05/0.5744, allocations: 171.6 kB / 0.6001 GB, free: 5.508 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.977e-05/0.5744, allocations: 88.66 kB / 0.6002 GB, free: 5.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.5745, allocations: 0 / 0.6002 GB, free: 5.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.5746, allocations: 333.1 kB / 0.6005 GB, free: 5.105 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.5747, allocations: 73.12 kB / 0.6006 GB, free: 5.062 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.5748, allocations: 102.2 kB / 0.6007 GB, free: 4.988 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001216/0.575, allocations: 75.03 kB / 0.6008 GB, free: 4.945 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.575, allocations: 4 kB / 0.6008 GB, free: 4.941 MB / 394.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007996/0.5758, allocations: 404.8 kB / 0.6012 GB, free: 4.609 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.5758, allocations: 4 kB / 0.6012 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.5758, allocations: 0 / 0.6012 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008287/0.5766, allocations: 232.7 kB / 0.6014 GB, free: 4.402 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.5768, allocations: 31.98 kB / 0.6014 GB, free: 4.371 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003023/0.5798, allocations: 3.133 MB / 0.6045 GB, free: 1.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.5801, allocations: 35.73 kB / 0.6045 GB, free: 1.285 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.5801, allocations: 11.31 kB / 0.6045 GB, free: 1.277 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.5802, allocations: 113.2 kB / 0.6046 GB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007777/0.581, allocations: 375.8 kB / 0.605 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.038e-05/0.5811, allocations: 27.67 kB / 0.605 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.751e-05/0.5811, allocations: 35.67 kB / 0.605 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.5811, allocations: 4 kB / 0.605 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.5812, allocations: 7.938 kB / 0.605 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.5812, allocations: 0 / 0.605 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001347/0.5825, allocations: 0.7902 MB / 0.6058 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.5825, allocations: 0 / 0.6058 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.861e-05/0.5826, allocations: 16 kB / 0.6058 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007688/0.5834, allocations: 231.1 kB / 0.6061 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.5834, allocations: 0 / 0.6061 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002932/0.5864, allocations: 3.139 MB / 0.6091 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5864, allocations: 0 / 0.6091 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008292/0.5872, allocations: 0.4897 MB / 0.6096 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.5874, allocations: 124.6 kB / 0.6097 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.5874, allocations: 0 / 0.6097 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/0.5877, allocations: 27.98 kB / 0.6097 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.344e-05/0.5878, allocations: 30.39 kB / 0.6098 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.5878, allocations: 8 kB / 0.6098 GB, free: 12.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001249/0.5879, allocations: 150.4 kB / 0.6099 GB, free: 12.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5879, allocations: 0 / 0.6099 GB, free: 12.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004502/0.5884, allocations: 91.8 kB / 0.61 GB, free: 11.97 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001105/0.5895, allocations: 1.095 MB / 0.6111 GB, free: 10.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008608/0.5904, allocations: 490.3 kB / 0.6116 GB, free: 10.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.5904, allocations: 0 / 0.6116 GB, free: 10.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004797/0.5909, allocations: 392.3 kB / 0.6119 GB, free: 10.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.5912, allocations: 23.17 kB / 0.6119 GB, free: 10.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008169/0.592, allocations: 377.6 kB / 0.6123 GB, free: 9.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000403/0.5925, allocations: 0.7718 MB / 0.6131 GB, free: 8.969 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.5926, allocations: 18.08 kB / 0.6131 GB, free: 8.949 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.5927, allocations: 72.91 kB / 0.6131 GB, free: 8.926 MB / 410.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5928, allocations: 0 / 0.6131 GB, free: 8.926 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/0.6189, allocations: 5.373 MB / 0.6184 GB, free: 3.602 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002479/0.6192, allocations: 166.2 kB / 0.6186 GB, free: 3.398 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/2.391, allocations: 5.625 kB / 0.6186 GB, free: 3.395 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat does not exist to compare? outputFormat=mat