Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001567/0.001567, allocations: 209.3 kB / 8.545 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.173/1.173, allocations: 225.5 MB / 234.4 MB, free: 3.457 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009133/0.0009133, allocations: 90.98 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1709/0.1709, allocations: 45.14 MB / 383.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.212/0.383, allocations: 69.36 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08849/0.4715, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2595/0.731, allocations: 95.68 MB / 0.5973 GB, free: 7.211 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001742/0.7312, allocations: 67.28 kB / 0.5974 GB, free: 7.18 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.03969/0.7709, allocations: 14.88 MB / 0.6119 GB, free: 10.64 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.771, allocations: 15.98 kB / 0.6119 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002338/0.7712, allocations: 79.16 kB / 0.612 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007028/0.7719, allocations: 445.8 kB / 0.6124 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.343e-05/0.772, allocations: 19.44 kB / 0.6124 GB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.653e-05/0.772, allocations: 24 kB / 0.6124 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004765/0.7725, allocations: 262.2 kB / 0.6127 GB, free: 9.922 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005908/0.7731, allocations: 387.5 kB / 0.6131 GB, free: 9.609 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.7732, allocations: 3.984 kB / 0.6131 GB, free: 9.605 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.7732, allocations: 3.812 kB / 0.6131 GB, free: 9.605 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.7732, allocations: 12 kB / 0.6131 GB, free: 9.594 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.7753, allocations: 1.18 MB / 0.6142 GB, free: 8.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005412/0.7758, allocations: 357.7 kB / 0.6146 GB, free: 8.324 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/0.7761, allocations: 153.2 kB / 0.6147 GB, free: 8.227 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.66e-05/0.7761, allocations: 4.438 kB / 0.6147 GB, free: 8.223 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003925/0.7765, allocations: 283.5 kB / 0.615 GB, free: 8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=55): time 3.376e-06/0.7765, allocations: 7.984 kB / 0.615 GB, free: 7.992 MB / 410.7 MB Notification: Performance of matching and sorting (n=55): time 0.0006462/0.7772, allocations: 359.8 kB / 0.6153 GB, free: 7.707 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.692e-05/0.7773, allocations: 170.1 kB / 0.6155 GB, free: 7.508 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005404/0.7778, allocations: 477.4 kB / 0.616 GB, free: 7.152 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.754e-05/0.7779, allocations: 37.2 kB / 0.616 GB, free: 7.113 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.778, allocations: 185.6 kB / 0.6162 GB, free: 6.949 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.7781, allocations: 118.7 kB / 0.6163 GB, free: 6.852 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.7781, allocations: 0 / 0.6163 GB, free: 6.852 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.7783, allocations: 379.1 kB / 0.6167 GB, free: 6.496 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/0.7786, allocations: 140 kB / 0.6168 GB, free: 6.414 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.7789, allocations: 242.1 kB / 0.617 GB, free: 6.219 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000194/0.7791, allocations: 114.5 kB / 0.6171 GB, free: 6.145 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.7791, allocations: 0 / 0.6171 GB, free: 6.145 MB / 410.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008508/0.78, allocations: 463.4 kB / 0.6176 GB, free: 5.773 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.78, allocations: 11.88 kB / 0.6176 GB, free: 5.762 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.78, allocations: 0 / 0.6176 GB, free: 5.762 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001355/0.7801, allocations: 38.97 kB / 0.6176 GB, free: 5.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002838/0.7804, allocations: 55.84 kB / 0.6177 GB, free: 5.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/0.7815, allocations: 1.349 MB / 0.619 GB, free: 4.266 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004518/0.7819, allocations: 95.91 kB / 0.6191 GB, free: 4.172 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.041e-05/0.782, allocations: 15.38 kB / 0.6191 GB, free: 4.16 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 62 ($whenCondition3,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition5,$whenCondition4,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,$whenCondition1,assertCondition.u,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 69 * 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.0001309/0.7821, allocations: 137 kB / 0.6192 GB, free: 4.023 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.342e-05/0.7822, allocations: 59.25 kB / 0.6193 GB, free: 3.965 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006443/0.7829, allocations: 386.6 kB / 0.6197 GB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.7829, allocations: 12 kB / 0.6197 GB, free: 3.668 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.7829, allocations: 0 / 0.6197 GB, free: 3.668 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.7829, allocations: 3.984 kB / 0.6197 GB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001404/0.7843, allocations: 0.97 MB / 0.6206 GB, free: 2.867 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.7843, allocations: 0 / 0.6206 GB, free: 2.867 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002023/0.7845, allocations: 51.03 kB / 0.6207 GB, free: 2.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.249e-06/0.7845, allocations: 4 kB / 0.6207 GB, free: 2.816 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.838e-05/0.7846, allocations: 10.48 kB / 0.6207 GB, free: 2.809 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.7846, allocations: 4 kB / 0.6207 GB, free: 2.805 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7846, allocations: 0 / 0.6207 GB, free: 2.805 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006168/0.7852, allocations: 497.9 kB / 0.6212 GB, free: 2.379 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006846/0.7859, allocations: 0.8707 MB / 0.622 GB, free: 1.566 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.786, allocations: 146 kB / 0.6221 GB, free: 1.414 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.323e-05/0.7861, allocations: 11.48 kB / 0.6222 GB, free: 1.406 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004568/0.7866, allocations: 75.94 kB / 0.6222 GB, free: 1.332 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.7868, allocations: 76.73 kB / 0.6223 GB, free: 1.273 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.367e-05/0.7868, allocations: 15.56 kB / 0.6223 GB, free: 1.262 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000347/0.7872, allocations: 354.6 kB / 0.6227 GB, free: 1.008 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001051/0.7882, allocations: 130.1 kB / 0.6228 GB, free: 0.8867 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,assertCondition.u,booleanPulse.pulseStart,and1.u2,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,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 (57): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0007124/0.789, allocations: 353.4 kB / 0.6231 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007369/0.7897, allocations: 491.5 kB / 0.6236 GB, free: 252 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.7897, allocations: 0 / 0.6236 GB, free: 252 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003156/0.79, allocations: 212.8 kB / 0.6238 GB, free: 100 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005089/0.7906, allocations: 94.66 kB / 0.6239 GB, free: 24 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.7919, allocations: 0.7083 MB / 0.6246 GB, free: 15.39 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005654/0.7925, allocations: 0.9494 MB / 0.6255 GB, free: 14.43 MB / 426.7 MB Notification: Performance of SimCode: time 2.91e-07/0.7925, allocations: 0 / 0.6255 GB, free: 14.43 MB / 426.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Logical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Logical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Logical_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat