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.002381/0.002381, allocations: 180.1 kB / 14.15 MB, free: 1.176 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.482/1.482, allocations: 221.3 MB / 236 MB, free: 2.941 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.001137/0.001137, allocations: 103.6 kB / 287 MB, free: 252 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2167/0.2167, allocations: 44.16 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.299e-05/3.311e-05, allocations: 8.156 kB / 451.9 MB, free: 9.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1341, allocations: 61.92 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4554/0.5895, allocations: 94.3 MB / 0.5939 GB, free: 10.96 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.5899, allocations: 67.97 kB / 0.594 GB, free: 10.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03889/0.6288, allocations: 13.05 MB / 0.6067 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.6289, allocations: 4 kB / 0.6067 GB, free: 13.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.315e-05/0.6289, allocations: 12 kB / 0.6067 GB, free: 13.82 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.001943/0.6309, allocations: 0.8491 MB / 0.6075 GB, free: 12.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.753e-05/0.631, allocations: 16.02 kB / 0.6076 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.6311, allocations: 74.53 kB / 0.6076 GB, free: 12.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.6312, allocations: 63.25 kB / 0.6077 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008511/0.6321, allocations: 421.9 kB / 0.6081 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.006e-05/0.6322, allocations: 36.95 kB / 0.6081 GB, free: 12.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.703e-05/0.6322, allocations: 44 kB / 0.6082 GB, free: 12.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008215/0.6331, allocations: 427.9 kB / 0.6086 GB, free: 11.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.6331, allocations: 0 / 0.6086 GB, free: 11.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.493e-05/0.6332, allocations: 16 kB / 0.6086 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.6332, allocations: 8 kB / 0.6086 GB, free: 11.76 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005453/0.6338, allocations: 275.9 kB / 0.6089 GB, free: 11.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.6361, allocations: 1.126 MB / 0.61 GB, free: 10.31 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.6373, allocations: 478.3 kB / 0.6104 GB, free: 9.836 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002853/0.6376, allocations: 158.2 kB / 0.6106 GB, free: 9.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.932e-05/0.6376, allocations: 4.438 kB / 0.6106 GB, free: 9.676 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000483/0.6381, allocations: 253.4 kB / 0.6108 GB, free: 9.414 MB / 426.7 MB Notification: Performance of pre-optimization done (n=52): time 3.266e-06/0.6381, allocations: 7.938 kB / 0.6108 GB, free: 9.406 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008132/0.639, allocations: 411.5 kB / 0.6112 GB, free: 8.996 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.945e-05/0.6391, allocations: 140.9 kB / 0.6113 GB, free: 8.824 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006098/0.6397, allocations: 474.8 kB / 0.6118 GB, free: 8.352 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.989e-05/0.6398, allocations: 49.58 kB / 0.6118 GB, free: 8.297 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.64, allocations: 253.3 kB / 0.6121 GB, free: 8.047 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.6401, allocations: 114.5 kB / 0.6122 GB, free: 7.934 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.6401, allocations: 16 kB / 0.6122 GB, free: 7.918 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000238/0.6404, allocations: 366.8 kB / 0.6126 GB, free: 7.551 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002968/0.6407, allocations: 141.1 kB / 0.6127 GB, free: 7.414 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000397/0.6411, allocations: 237 kB / 0.6129 GB, free: 7.156 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.6414, allocations: 130 kB / 0.613 GB, free: 7.035 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.6414, allocations: 0 / 0.613 GB, free: 7.035 MB / 426.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001084/0.6425, allocations: 471.2 kB / 0.6135 GB, free: 6.562 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.385e-05/0.6425, allocations: 9.234 kB / 0.6135 GB, free: 6.555 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.6426, allocations: 0 / 0.6135 GB, free: 6.555 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002397/0.6428, allocations: 40.86 kB / 0.6135 GB, free: 6.512 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002771/0.6431, allocations: 63.91 kB / 0.6136 GB, free: 6.449 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.6448, allocations: 1.428 MB / 0.615 GB, free: 4.883 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005246/0.6453, allocations: 83.88 kB / 0.6151 GB, free: 4.801 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/0.6454, allocations: 19.98 kB / 0.6151 GB, free: 4.781 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.0002021/0.6456, allocations: 158.1 kB / 0.6152 GB, free: 4.617 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.6457, allocations: 55.3 kB / 0.6153 GB, free: 4.562 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008571/0.6466, allocations: 457.4 kB / 0.6157 GB, free: 4.113 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.6466, allocations: 4 kB / 0.6157 GB, free: 4.109 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.6466, allocations: 0 / 0.6157 GB, free: 4.109 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.6466, allocations: 3.984 kB / 0.6157 GB, free: 4.105 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/0.6483, allocations: 1.084 MB / 0.6168 GB, free: 2.965 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.6484, allocations: 0 / 0.6168 GB, free: 2.965 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002045/0.6486, allocations: 47.84 kB / 0.6168 GB, free: 2.918 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.6486, allocations: 0 / 0.6168 GB, free: 2.918 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.345e-05/0.6486, allocations: 11.98 kB / 0.6169 GB, free: 2.906 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.6486, allocations: 4 kB / 0.6169 GB, free: 2.902 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.6487, allocations: 0 / 0.6169 GB, free: 2.902 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007835/0.6494, allocations: 0.519 MB / 0.6174 GB, free: 2.367 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.6496, allocations: 140.4 kB / 0.6175 GB, free: 2.211 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.145e-05/0.6497, allocations: 23.98 kB / 0.6175 GB, free: 2.188 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003827/0.6501, allocations: 67.94 kB / 0.6176 GB, free: 2.121 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.6503, allocations: 76.31 kB / 0.6177 GB, free: 2.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.6503, allocations: 15.94 kB / 0.6177 GB, free: 2.027 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004584/0.6508, allocations: 353.2 kB / 0.618 GB, free: 1.684 MB / 426.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6508, allocations: 4 kB / 0.618 GB, free: 1.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005678/0.6514, allocations: 135.8 kB / 0.6182 GB, free: 1.547 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.001975/0.6533, allocations: 1.376 MB / 0.6195 GB, free: 264 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.6544, allocations: 0.4973 MB / 0.62 GB, free: 15.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.6544, allocations: 0 / 0.62 GB, free: 15.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004176/0.6548, allocations: 214.4 kB / 0.6202 GB, free: 15.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005857/0.6554, allocations: 68.56 kB / 0.6203 GB, free: 15.47 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001954/0.6574, allocations: 0.8136 MB / 0.621 GB, free: 14.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000505/0.6579, allocations: 0.8805 MB / 0.6219 GB, free: 13.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002698/0.6582, allocations: 75.41 kB / 0.622 GB, free: 13.63 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.6585, allocations: 195.3 kB / 0.6222 GB, free: 13.44 MB / 442.7 MB Notification: Performance of SimCode: time 1.233e-06/0.6585, allocations: 0 / 0.6222 GB, free: 13.44 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0266/0.6851, allocations: 11.07 MB / 0.633 GB, free: 2.477 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.6853, allocations: 199.6 kB / 0.6332 GB, free: 2.25 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.445/3.13, allocations: 0 / 0.6332 GB, free: 2.25 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