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.001345/0.001345, allocations: 173.1 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 221.5 MB / 230.7 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008759/0.0008759, allocations: 100.5 kB / 281.6 MB, free: 5.32 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.2403/0.2403, allocations: 44.14 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.692e-05/1.687e-05, allocations: 4.156 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.126, allocations: 61.92 MB / 0.4948 GB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4512/0.5772, allocations: 93.64 MB / 0.5862 GB, free: 2.703 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/0.5776, allocations: 67.97 kB / 0.5863 GB, free: 2.637 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03577/0.6133, allocations: 12.96 MB / 0.5989 GB, free: 5.672 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.6134, allocations: 0 / 0.5989 GB, free: 5.672 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.227e-05/0.6135, allocations: 12 kB / 0.5989 GB, free: 5.66 MB / 410.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.001725/0.6152, allocations: 0.8494 MB / 0.5998 GB, free: 4.746 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.103e-05/0.6153, allocations: 15.98 kB / 0.5998 GB, free: 4.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.6154, allocations: 64.09 kB / 0.5998 GB, free: 4.668 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007471/0.6162, allocations: 416.5 kB / 0.6002 GB, free: 4.219 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.919e-05/0.6162, allocations: 15.95 kB / 0.6003 GB, free: 4.203 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.434e-05/0.6163, allocations: 28 kB / 0.6003 GB, free: 4.176 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004655/0.6168, allocations: 250.5 kB / 0.6005 GB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005935/0.6174, allocations: 378 kB / 0.6009 GB, free: 3.547 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.6174, allocations: 0 / 0.6009 GB, free: 3.547 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.559e-05/0.6174, allocations: 0 / 0.6009 GB, free: 3.547 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.6175, allocations: 12 kB / 0.6009 GB, free: 3.535 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.6194, allocations: 1.055 MB / 0.6019 GB, free: 2.438 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009166/0.6203, allocations: 442.9 kB / 0.6023 GB, free: 1.996 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.6205, allocations: 146.1 kB / 0.6025 GB, free: 1.852 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.6206, allocations: 4.438 kB / 0.6025 GB, free: 1.848 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000397/0.621, allocations: 248.5 kB / 0.6027 GB, free: 1.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 2.304e-06/0.621, allocations: 0 / 0.6027 GB, free: 1.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.0006689/0.6217, allocations: 383.5 kB / 0.6031 GB, free: 1.211 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.615e-05/0.6217, allocations: 133 kB / 0.6032 GB, free: 1.051 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005288/0.6223, allocations: 456.9 kB / 0.6037 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.001e-05/0.6223, allocations: 37.7 kB / 0.6037 GB, free: 0.5586 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.6225, allocations: 253.2 kB / 0.6039 GB, free: 312 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.6226, allocations: 114.5 kB / 0.604 GB, free: 196 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.281e-05/0.6226, allocations: 0 / 0.604 GB, free: 196 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.6228, allocations: 370.7 kB / 0.6044 GB, free: 15.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002207/0.623, allocations: 137.1 kB / 0.6045 GB, free: 15.69 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002875/0.6233, allocations: 223.8 kB / 0.6047 GB, free: 15.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000193/0.6235, allocations: 110.1 kB / 0.6048 GB, free: 15.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.6235, allocations: 0 / 0.6048 GB, free: 15.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007947/0.6243, allocations: 431.2 kB / 0.6053 GB, free: 14.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.6244, allocations: 4 kB / 0.6053 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.6244, allocations: 0 / 0.6053 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.6246, allocations: 40.91 kB / 0.6053 GB, free: 14.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002674/0.6248, allocations: 63.83 kB / 0.6054 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.6261, allocations: 1.384 MB / 0.6067 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003959/0.6265, allocations: 75.88 kB / 0.6068 GB, free: 13.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.713e-05/0.6266, allocations: 16 kB / 0.6068 GB, free: 13.21 MB / 426.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.0001566/0.6267, allocations: 146.2 kB / 0.6069 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005862/0.6273, allocations: 383.5 kB / 0.6073 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.631e-05/0.6274, allocations: 55.3 kB / 0.6074 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006676/0.6281, allocations: 417.4 kB / 0.6078 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.6281, allocations: 4 kB / 0.6078 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.6281, allocations: 0 / 0.6078 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.6281, allocations: 7.984 kB / 0.6078 GB, free: 12.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.6295, allocations: 0.979 MB / 0.6087 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.6295, allocations: 0 / 0.6087 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002006/0.6297, allocations: 43.91 kB / 0.6088 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.6297, allocations: 0 / 0.6088 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.6298, allocations: 7.984 kB / 0.6088 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.6298, allocations: 8 kB / 0.6088 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.6298, allocations: 0 / 0.6088 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006371/0.6304, allocations: 0.4916 MB / 0.6093 GB, free: 10.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.6306, allocations: 136.5 kB / 0.6094 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.975e-05/0.6307, allocations: 15.92 kB / 0.6094 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003862/0.6311, allocations: 67.94 kB / 0.6095 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.6312, allocations: 72.31 kB / 0.6095 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.6313, allocations: 19.94 kB / 0.6096 GB, free: 10.28 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003589/0.6316, allocations: 338.9 kB / 0.6099 GB, free: 9.945 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6316, allocations: 0 / 0.6099 GB, free: 9.945 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005224/0.6322, allocations: 119.8 kB / 0.61 GB, free: 9.828 MB / 426.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.00169/0.6339, allocations: 1.296 MB / 0.6113 GB, free: 8.574 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008593/0.6347, allocations: 474.4 kB / 0.6117 GB, free: 8.102 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.6347, allocations: 0 / 0.6117 GB, free: 8.102 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000288/0.635, allocations: 197.5 kB / 0.6119 GB, free: 7.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005584/0.6356, allocations: 93.73 kB / 0.612 GB, free: 7.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.6374, allocations: 0.7569 MB / 0.6127 GB, free: 7.027 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005402/0.638, allocations: 0.8801 MB / 0.6136 GB, free: 6.121 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002972/0.6383, allocations: 75.41 kB / 0.6137 GB, free: 6.043 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.6386, allocations: 191.4 kB / 0.6138 GB, free: 5.859 MB / 426.7 MB Notification: Performance of SimCode: time 2.915e-06/0.6386, allocations: 0 / 0.6138 GB, free: 5.859 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04176/0.6804, allocations: 10.32 MB / 0.6239 GB, free: 11.57 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002418/0.6807, allocations: 144.2 kB / 0.6241 GB, free: 11.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.343/3.024, allocations: 0 / 0.6241 GB, free: 11.38 MB / 442.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