Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001856/0.001856, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.603/1.603, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008428/0.0008428, allocations: 90.58 kB / 261.8 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2068/0.2068, allocations: 43.49 MB / 353.2 MB, free: 276 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.435e-05/3.461e-05, allocations: 4 kB / 418.3 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1244, allocations: 58.86 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4359/0.5603, allocations: 92.13 MB / 0.556 GB, free: 3.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.5606, allocations: 72.12 kB / 0.5561 GB, free: 3.039 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03452/0.5951, allocations: 12.7 MB / 0.5685 GB, free: 8.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5952, allocations: 0 / 0.5685 GB, free: 8.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.511e-05/0.5952, allocations: 12 kB / 0.5685 GB, free: 8.418 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001664/0.5969, allocations: 0.8519 MB / 0.5693 GB, free: 7.539 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.597, allocations: 16.03 kB / 0.5693 GB, free: 7.523 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.5971, allocations: 63.25 kB / 0.5694 GB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007013/0.5978, allocations: 425 kB / 0.5698 GB, free: 7.062 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.661e-05/0.5979, allocations: 16 kB / 0.5698 GB, free: 7.047 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.619e-05/0.5979, allocations: 24 kB / 0.5698 GB, free: 7.023 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00046/0.5984, allocations: 246.5 kB / 0.5701 GB, free: 6.867 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006255/0.599, allocations: 381.8 kB / 0.5704 GB, free: 6.566 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.5991, allocations: 4 kB / 0.5704 GB, free: 6.562 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.5991, allocations: 0 / 0.5704 GB, free: 6.562 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.5991, allocations: 12 kB / 0.5704 GB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.6011, allocations: 1.038 MB / 0.5715 GB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009549/0.602, allocations: 450.1 kB / 0.5719 GB, free: 5.363 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002018/0.6023, allocations: 145.1 kB / 0.572 GB, free: 5.273 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.313e-05/0.6023, allocations: 8.438 kB / 0.572 GB, free: 5.266 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000425/0.6027, allocations: 243.7 kB / 0.5723 GB, free: 5.082 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 1.884e-06/0.6027, allocations: 0 / 0.5723 GB, free: 5.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.0007065/0.6035, allocations: 388.3 kB / 0.5726 GB, free: 4.777 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.792e-05/0.6036, allocations: 133 kB / 0.5728 GB, free: 4.617 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005431/0.6041, allocations: 465.8 kB / 0.5732 GB, free: 4.266 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.261e-05/0.6042, allocations: 33.45 kB / 0.5732 GB, free: 4.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001717/0.6044, allocations: 242.6 kB / 0.5735 GB, free: 4.066 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.6045, allocations: 118.7 kB / 0.5736 GB, free: 3.965 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.282e-05/0.6045, allocations: 0 / 0.5736 GB, free: 3.965 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.6047, allocations: 363 kB / 0.5739 GB, free: 3.625 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.6049, allocations: 141.4 kB / 0.5741 GB, free: 3.543 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002913/0.6052, allocations: 219 kB / 0.5743 GB, free: 3.371 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001939/0.6054, allocations: 113.5 kB / 0.5744 GB, free: 3.301 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.524e-05/0.6054, allocations: 0 / 0.5744 GB, free: 3.301 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008683/0.6063, allocations: 438.9 kB / 0.5748 GB, free: 2.949 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.6063, allocations: 7.953 kB / 0.5748 GB, free: 2.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.6064, allocations: 4 kB / 0.5748 GB, free: 2.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001594/0.6065, allocations: 31.66 kB / 0.5748 GB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.6068, allocations: 66.14 kB / 0.5749 GB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.6082, allocations: 1.384 MB / 0.5763 GB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004346/0.6087, allocations: 75.25 kB / 0.5763 GB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.6087, allocations: 15.75 kB / 0.5763 GB, free: 1.332 MB / 378.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: 58 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.u2,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002044/0.6089, allocations: 141.3 kB / 0.5765 GB, free: 1.195 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006142/0.6095, allocations: 384.2 kB / 0.5768 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.678e-05/0.6096, allocations: 51.34 kB / 0.5769 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006833/0.6103, allocations: 424.1 kB / 0.5773 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.6103, allocations: 8 kB / 0.5773 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.6103, allocations: 0 / 0.5773 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.6104, allocations: 3.984 kB / 0.5773 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.6118, allocations: 0.965 MB / 0.5782 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.6118, allocations: 0 / 0.5782 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001885/0.612, allocations: 47.72 kB / 0.5783 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.612, allocations: 4 kB / 0.5783 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.008e-05/0.612, allocations: 7.234 kB / 0.5783 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.6121, allocations: 4 kB / 0.5783 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.6121, allocations: 0 / 0.5783 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006178/0.6127, allocations: 0.4922 MB / 0.5788 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.6128, allocations: 143.8 kB / 0.5789 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.609e-05/0.6129, allocations: 11.48 kB / 0.5789 GB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003746/0.6133, allocations: 67.19 kB / 0.579 GB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.6135, allocations: 74 kB / 0.5791 GB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/0.6135, allocations: 15.25 kB / 0.5791 GB, free: 14.96 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004107/0.6139, allocations: 333.1 kB / 0.5794 GB, free: 14.71 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6139, allocations: 0 / 0.5794 GB, free: 14.71 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000558/0.6145, allocations: 115.3 kB / 0.5795 GB, free: 14.61 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 (and1.u2,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 15 (table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,pre1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,table2.combiTimeTable.nextTimeEventScaled,triggeredTrapezoid.y,table1.combiTimeTable.nextTimeEventScaled,change1.u,fallingEdge.not_u,edge1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001966/0.6165, allocations: 1.313 MB / 0.5808 GB, free: 13.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008989/0.6174, allocations: 480.6 kB / 0.5813 GB, free: 13.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.6174, allocations: 0 / 0.5813 GB, free: 13.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002766/0.6177, allocations: 195.9 kB / 0.5814 GB, free: 12.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004962/0.6182, allocations: 76.27 kB / 0.5815 GB, free: 12.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.6197, allocations: 0.7729 MB / 0.5823 GB, free: 12.15 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.6201, allocations: 0.8832 MB / 0.5831 GB, free: 11.25 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002552/0.6204, allocations: 74.67 kB / 0.5832 GB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002783/0.6207, allocations: 193.9 kB / 0.5834 GB, free: 11.12 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.6207, allocations: 0 / 0.5834 GB, free: 11.12 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03271/0.6534, allocations: 10.32 MB / 0.5935 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002036/0.6537, allocations: 143.7 kB / 0.5936 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.387/3.041, allocations: 0 / 0.5936 GB, free: 0.6094 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Logical_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat