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.001197/0.001197, allocations: 182.8 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.657/1.657, allocations: 205.2 MB / 218.9 MB, free: 9.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009551/0.0009552, allocations: 92.25 kB / 267.1 MB, free: 9.277 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.4497/0.4497, allocations: 43.48 MB / 358.6 MB, free: 51.6 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.361e-05/4.363e-05, allocations: 8 kB / 425.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1499, allocations: 58.84 MB / 484.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5093/0.6592, allocations: 92.79 MB / 0.5635 GB, free: 12.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/0.6595, allocations: 65.02 kB / 0.5636 GB, free: 12.44 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0318/0.6913, allocations: 12.82 MB / 0.5761 GB, free: 1.922 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.6914, allocations: 0 / 0.5761 GB, free: 1.922 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.044e-05/0.6914, allocations: 12 kB / 0.5761 GB, free: 1.91 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001334/0.6928, allocations: 0.8539 MB / 0.5769 GB, free: 1.039 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.6928, allocations: 12.03 kB / 0.577 GB, free: 1.027 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.799e-05/0.6929, allocations: 78.83 kB / 0.577 GB, free: 0.9648 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.6931, allocations: 70.69 kB / 0.5771 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006161/0.6937, allocations: 412 kB / 0.5775 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/0.6937, allocations: 37.94 kB / 0.5775 GB, free: 500 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.258e-05/0.6938, allocations: 43.3 kB / 0.5776 GB, free: 468 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006203/0.6944, allocations: 419 kB / 0.578 GB, free: 156 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.6945, allocations: 3.938 kB / 0.578 GB, free: 152 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.155e-05/0.6945, allocations: 21.11 kB / 0.578 GB, free: 144 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.6945, allocations: 12 kB / 0.578 GB, free: 132 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004572/0.695, allocations: 270.8 kB / 0.5783 GB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.6971, allocations: 1.12 MB / 0.5794 GB, free: 15.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009866/0.6981, allocations: 463.8 kB / 0.5798 GB, free: 14.69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.6983, allocations: 163.3 kB / 0.5799 GB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.858e-05/0.6984, allocations: 8.422 kB / 0.58 GB, free: 14.58 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004401/0.6988, allocations: 269.2 kB / 0.5802 GB, free: 14.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 2.685e-06/0.6988, allocations: 0 / 0.5802 GB, free: 14.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.0007724/0.6996, allocations: 413.5 kB / 0.5806 GB, free: 14.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.956e-05/0.6997, allocations: 136.8 kB / 0.5807 GB, free: 13.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005622/0.7003, allocations: 475.4 kB / 0.5812 GB, free: 13.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.695e-05/0.7003, allocations: 51.94 kB / 0.5812 GB, free: 13.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.7005, allocations: 238.1 kB / 0.5815 GB, free: 13.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.7006, allocations: 118.5 kB / 0.5816 GB, free: 13.22 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.479e-05/0.7006, allocations: 14 kB / 0.5816 GB, free: 13.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.7008, allocations: 365.1 kB / 0.5819 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002481/0.7011, allocations: 150.9 kB / 0.5821 GB, free: 12.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003105/0.7014, allocations: 233 kB / 0.5823 GB, free: 12.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/0.7016, allocations: 122.4 kB / 0.5824 GB, free: 12.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.7016, allocations: 0 / 0.5824 GB, free: 12.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008504/0.7025, allocations: 483.9 kB / 0.5829 GB, free: 12.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.7025, allocations: 4.781 kB / 0.5829 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.7025, allocations: 0 / 0.5829 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.7027, allocations: 44.66 kB / 0.5829 GB, free: 12.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.7029, allocations: 51.84 kB / 0.583 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.7042, allocations: 1.438 MB / 0.5844 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004027/0.7046, allocations: 86.25 kB / 0.5845 GB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.7047, allocations: 19.62 kB / 0.5845 GB, free: 10.46 MB / 410.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.0001587/0.7048, allocations: 159.3 kB / 0.5846 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.373e-05/0.7049, allocations: 51.42 kB / 0.5847 GB, free: 10.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007929/0.7057, allocations: 463.4 kB / 0.5851 GB, free: 9.938 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.7057, allocations: 4 kB / 0.5851 GB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.7058, allocations: 0 / 0.5851 GB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/0.7058, allocations: 9.297 kB / 0.5851 GB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001652/0.7074, allocations: 1.072 MB / 0.5862 GB, free: 9.043 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.7074, allocations: 3.938 kB / 0.5862 GB, free: 9.039 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.7076, allocations: 47.53 kB / 0.5862 GB, free: 8.996 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.7077, allocations: 7.984 kB / 0.5862 GB, free: 8.988 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-05/0.7077, allocations: 11.38 kB / 0.5863 GB, free: 8.984 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.7077, allocations: 0 / 0.5863 GB, free: 8.984 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.7077, allocations: 3.984 kB / 0.5863 GB, free: 8.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006813/0.7084, allocations: 0.5083 MB / 0.5868 GB, free: 8.547 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.7086, allocations: 143.5 kB / 0.5869 GB, free: 8.398 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.33e-05/0.7087, allocations: 19 kB / 0.5869 GB, free: 8.387 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003927/0.709, allocations: 70.62 kB / 0.587 GB, free: 8.324 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.7092, allocations: 74.44 kB / 0.5871 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-05/0.7093, allocations: 15.42 kB / 0.5871 GB, free: 8.254 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003831/0.7097, allocations: 353.2 kB / 0.5874 GB, free: 7.992 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7097, allocations: 0 / 0.5874 GB, free: 7.992 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005201/0.7102, allocations: 141.3 kB / 0.5875 GB, free: 7.871 MB / 410.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.001915/0.7121, allocations: 1.376 MB / 0.5889 GB, free: 6.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009209/0.7131, allocations: 0.4947 MB / 0.5894 GB, free: 6.273 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.7131, allocations: 0 / 0.5894 GB, free: 6.273 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003266/0.7134, allocations: 205.6 kB / 0.5896 GB, free: 6.129 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004835/0.7139, allocations: 77.64 kB / 0.5896 GB, free: 6.074 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.7154, allocations: 0.8168 MB / 0.5904 GB, free: 5.352 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004374/0.7158, allocations: 0.8839 MB / 0.5913 GB, free: 4.441 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000235/0.7161, allocations: 67.42 kB / 0.5914 GB, free: 4.375 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/0.7164, allocations: 195.4 kB / 0.5915 GB, free: 4.312 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.7164, allocations: 0 / 0.5915 GB, free: 4.312 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02877/0.7452, allocations: 11.07 MB / 0.6024 GB, free: 9.27 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/0.7454, allocations: 203.2 kB / 0.6026 GB, free: 9.039 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.242/2.987, allocations: 0 / 0.6026 GB, free: 9.039 MB / 426.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