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"}) [: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 3.2.3+maint.om/package.mo): time 0.001261/0.001261, allocations: 189.3 kB / 7.807 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 205.2 MB / 213.4 MB, free: 13.84 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.001068/0.001068, allocations: 103 kB / 261.4 MB, free: 13.52 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.2221/0.2221, allocations: 43.48 MB / 352.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.26/0.4821, allocations: 64.96 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4006/0.8827, allocations: 58.84 MB / 476.6 MB, free: 5.172 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.15/1.033, allocations: 92.07 MB / 0.5554 GB, free: 6.832 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/1.033, allocations: 71.14 kB / 0.5554 GB, free: 6.766 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.03992/1.073, allocations: 13.22 MB / 0.5684 GB, free: 9.461 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.502e-05/1.073, allocations: 8 kB / 0.5684 GB, free: 9.453 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002892/1.073, allocations: 63.25 kB / 0.5684 GB, free: 9.391 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/1.074, allocations: 418 kB / 0.5688 GB, free: 8.941 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.39e-05/1.075, allocations: 20 kB / 0.5688 GB, free: 8.922 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.57e-05/1.075, allocations: 35.98 kB / 0.5689 GB, free: 8.887 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005832/1.075, allocations: 257.8 kB / 0.5691 GB, free: 8.637 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006791/1.076, allocations: 361.9 kB / 0.5695 GB, free: 8.262 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/1.076, allocations: 0 / 0.5695 GB, free: 8.262 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.227e-05/1.076, allocations: 3.984 kB / 0.5695 GB, free: 8.258 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/1.076, allocations: 12 kB / 0.5695 GB, free: 8.246 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002375/1.078, allocations: 1.058 MB / 0.5705 GB, free: 7.145 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005707/1.079, allocations: 322.3 kB / 0.5708 GB, free: 6.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002392/1.079, allocations: 150.1 kB / 0.571 GB, free: 6.672 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/1.079, allocations: 12.42 kB / 0.571 GB, free: 6.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003876/1.08, allocations: 245.5 kB / 0.5712 GB, free: 6.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 2.555e-06/1.08, allocations: 0 / 0.5712 GB, free: 6.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.0006897/1.08, allocations: 334.7 kB / 0.5715 GB, free: 6.074 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.19e-05/1.08, allocations: 141 kB / 0.5717 GB, free: 5.906 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006223/1.081, allocations: 452.9 kB / 0.5721 GB, free: 5.461 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.146e-05/1.081, allocations: 33.7 kB / 0.5721 GB, free: 5.422 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/1.081, allocations: 185.3 kB / 0.5723 GB, free: 5.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/1.081, allocations: 118.5 kB / 0.5724 GB, free: 5.113 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.216e-05/1.081, allocations: 0 / 0.5724 GB, free: 5.113 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/1.082, allocations: 362.8 kB / 0.5728 GB, free: 4.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000255/1.082, allocations: 137.3 kB / 0.5729 GB, free: 4.617 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003658/1.082, allocations: 220.7 kB / 0.5731 GB, free: 4.375 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002085/1.083, allocations: 111.2 kB / 0.5732 GB, free: 4.266 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/1.083, allocations: 4 kB / 0.5732 GB, free: 4.262 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008653/1.083, allocations: 444.2 kB / 0.5736 GB, free: 3.816 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/1.083, allocations: 6.656 kB / 0.5736 GB, free: 3.812 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/1.083, allocations: 7.844 kB / 0.5737 GB, free: 3.805 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001603/1.084, allocations: 32.84 kB / 0.5737 GB, free: 3.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002973/1.084, allocations: 63.84 kB / 0.5737 GB, free: 3.707 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/1.085, allocations: 1.333 MB / 0.575 GB, free: 2.258 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004498/1.086, allocations: 79.98 kB / 0.5751 GB, free: 2.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/1.086, allocations: 16 kB / 0.5751 GB, free: 2.164 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.000209/1.086, allocations: 153.6 kB / 0.5753 GB, free: 2.008 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/1.086, allocations: 55.33 kB / 0.5753 GB, free: 1.953 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008076/1.087, allocations: 372.6 kB / 0.5757 GB, free: 1.586 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/1.087, allocations: 4 kB / 0.5757 GB, free: 1.582 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/1.087, allocations: 0 / 0.5757 GB, free: 1.582 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/1.087, allocations: 7.984 kB / 0.5757 GB, free: 1.574 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00156/1.088, allocations: 0.9391 MB / 0.5766 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/1.088, allocations: 0 / 0.5766 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/1.089, allocations: 51.84 kB / 0.5767 GB, free: 0.5391 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/1.089, allocations: 0 / 0.5767 GB, free: 0.5391 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.309e-05/1.089, allocations: 11.98 kB / 0.5767 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/1.089, allocations: 0 / 0.5767 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/1.089, allocations: 4 kB / 0.5767 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000711/1.089, allocations: 454.6 kB / 0.5771 GB, free: 64 kB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008741/1.09, allocations: 0.835 MB / 0.5779 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001438/1.09, allocations: 144.4 kB / 0.5781 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.403e-05/1.091, allocations: 8 kB / 0.5781 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004197/1.091, allocations: 71.94 kB / 0.5781 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/1.091, allocations: 76.25 kB / 0.5782 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.103e-05/1.091, allocations: 19.98 kB / 0.5782 GB, free: 14.88 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004724/1.092, allocations: 327.2 kB / 0.5786 GB, free: 14.56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001281/1.093, allocations: 119.8 kB / 0.5787 GB, free: 14.45 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.0008474/1.094, allocations: 354.9 kB / 0.579 GB, free: 14.13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009471/1.095, allocations: 466 kB / 0.5794 GB, free: 13.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.095, allocations: 4 kB / 0.5795 GB, free: 13.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000354/1.095, allocations: 201.7 kB / 0.5796 GB, free: 13.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005426/1.096, allocations: 76.2 kB / 0.5797 GB, free: 13.39 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/1.097, allocations: 0.6704 MB / 0.5804 GB, free: 12.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006929/1.098, allocations: 0.9376 MB / 0.5813 GB, free: 11.73 MB / 426.7 MB Notification: Performance of SimCode: time 3.11e-07/1.098, allocations: 3.938 kB / 0.5813 GB, free: 11.73 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)