Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 176.5 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009368/0.0009366, allocations: 95.47 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3049/0.3049, allocations: 44.22 MB / 387.5 MB, free: 38.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003353, allocations: 8 kB / 460 MB, free: 1.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3922/0.3926, allocations: 61.89 MB / 0.5096 GB, free: 38.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1301/0.5228, allocations: 94.38 MB / 0.6018 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.523, allocations: 79.92 kB / 0.6019 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03648/0.5595, allocations: 13.09 MB / 0.6147 GB, free: 3.535 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5596, allocations: 0 / 0.6147 GB, free: 3.535 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.617e-05/0.5596, allocations: 12 kB / 0.6147 GB, free: 3.523 MB / 426.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.002091/0.5617, allocations: 0.9272 MB / 0.6156 GB, free: 2.527 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.5618, allocations: 11.97 kB / 0.6156 GB, free: 2.516 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001608/0.562, allocations: 82.52 kB / 0.6157 GB, free: 2.426 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002268/0.5622, allocations: 67.25 kB / 0.6157 GB, free: 2.359 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009142/0.5631, allocations: 414 kB / 0.6161 GB, free: 1.914 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.502e-05/0.5632, allocations: 36.95 kB / 0.6162 GB, free: 1.879 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.572e-05/0.5633, allocations: 51.98 kB / 0.6162 GB, free: 1.828 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.5644, allocations: 463.7 kB / 0.6166 GB, free: 1.355 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.5644, allocations: 0 / 0.6166 GB, free: 1.355 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.036e-05/0.5645, allocations: 19.98 kB / 0.6167 GB, free: 1.336 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.5645, allocations: 12 kB / 0.6167 GB, free: 1.324 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009565/0.5654, allocations: 339.8 kB / 0.617 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002487/0.5679, allocations: 1.126 MB / 0.6181 GB, free: 15.81 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.5692, allocations: 0.5062 MB / 0.6186 GB, free: 15.29 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.601e-05/0.5693, allocations: 8.438 kB / 0.6186 GB, free: 15.29 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006972/0.57, allocations: 293.3 kB / 0.6189 GB, free: 14.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=52): time 3.437e-06/0.57, allocations: 3.938 kB / 0.6189 GB, free: 14.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.001601/0.5716, allocations: 0.6468 MB / 0.6195 GB, free: 14.33 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.718e-05/0.5717, allocations: 144.9 kB / 0.6197 GB, free: 14.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006627/0.5724, allocations: 476.7 kB / 0.6201 GB, free: 13.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.498e-05/0.5725, allocations: 45.7 kB / 0.6202 GB, free: 13.63 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001962/0.5727, allocations: 249.3 kB / 0.6204 GB, free: 13.39 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.5728, allocations: 122.5 kB / 0.6205 GB, free: 13.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.737e-05/0.5729, allocations: 12 kB / 0.6205 GB, free: 13.26 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.573, allocations: 366.7 kB / 0.6209 GB, free: 12.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004359/0.5735, allocations: 177 kB / 0.621 GB, free: 12.72 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000482/0.574, allocations: 264.9 kB / 0.6213 GB, free: 12.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003831/0.5744, allocations: 158.1 kB / 0.6214 GB, free: 12.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.5744, allocations: 0 / 0.6214 GB, free: 12.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001035/0.5754, allocations: 498.3 kB / 0.6219 GB, free: 11.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.5755, allocations: 5.406 kB / 0.6219 GB, free: 11.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.5755, allocations: 3.938 kB / 0.6219 GB, free: 11.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.5755, allocations: 8.062 kB / 0.6219 GB, free: 11.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002896/0.5758, allocations: 63.89 kB / 0.622 GB, free: 11.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.5758, allocations: 7.984 kB / 0.622 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000391/0.5762, allocations: 79.8 kB / 0.6221 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.467e-05/0.5763, allocations: 19.98 kB / 0.6221 GB, free: 11.61 MB / 442.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002906/0.5766, allocations: 228.8 kB / 0.6223 GB, free: 11.37 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.572e-05/0.5767, allocations: 55.33 kB / 0.6224 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/0.5778, allocations: 0.5249 MB / 0.6229 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/0.5779, allocations: 8 kB / 0.6229 GB, free: 10.78 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.5779, allocations: 0 / 0.6229 GB, free: 10.78 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.5779, allocations: 3.984 kB / 0.6229 GB, free: 10.78 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.5799, allocations: 1.146 MB / 0.624 GB, free: 9.574 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.5799, allocations: 4 kB / 0.624 GB, free: 9.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.5801, allocations: 39.91 kB / 0.6241 GB, free: 9.531 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/0.5802, allocations: 7.984 kB / 0.6241 GB, free: 9.523 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-05/0.5802, allocations: 12 kB / 0.6241 GB, free: 9.512 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.5802, allocations: 0 / 0.6241 GB, free: 9.512 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.5802, allocations: 4.047 kB / 0.6241 GB, free: 9.508 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.5814, allocations: 0.597 MB / 0.6247 GB, free: 8.891 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.5815, allocations: 140.4 kB / 0.6248 GB, free: 8.734 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.328e-05/0.5816, allocations: 23.98 kB / 0.6248 GB, free: 8.711 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003725/0.582, allocations: 67.94 kB / 0.6249 GB, free: 8.645 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.5822, allocations: 76.27 kB / 0.625 GB, free: 8.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.843e-05/0.5823, allocations: 19.98 kB / 0.625 GB, free: 8.551 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004306/0.5827, allocations: 351.1 kB / 0.6253 GB, free: 8.207 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5827, allocations: 0 / 0.6253 GB, free: 8.207 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005288/0.5832, allocations: 135.8 kB / 0.6254 GB, free: 8.074 MB / 442.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) * Number of clocked states: 0 () * 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.00242/0.5857, allocations: 1.487 MB / 0.6269 GB, free: 6.727 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.5867, allocations: 465.5 kB / 0.6273 GB, free: 6.273 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5867, allocations: 4 kB / 0.6273 GB, free: 6.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005071/0.5873, allocations: 246.5 kB / 0.6276 GB, free: 6.027 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004826/0.5878, allocations: 83.8 kB / 0.6277 GB, free: 5.953 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005181/0.5929, allocations: 3.224 MB / 0.6308 GB, free: 2.668 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004672/0.5934, allocations: 0.8802 MB / 0.6317 GB, free: 1.758 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002866/0.5937, allocations: 71.42 kB / 0.6317 GB, free: 1.688 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003122/0.5941, allocations: 195.3 kB / 0.6319 GB, free: 1.496 MB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5941, allocations: 4 kB / 0.6319 GB, free: 1.492 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0295/0.6236, allocations: 10.84 MB / 0.6425 GB, free: 6.812 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.6238, allocations: 198 kB / 0.6427 GB, free: 6.57 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.165/2.788, allocations: 0 / 0.6427 GB, free: 6.57 MB / 458.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Logical_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat