Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical") [: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.2+maint.om/package.mo): time 0.002464/0.002464, allocations: 185.7 kB / 7.458 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.324/1.324, allocations: 194.2 MB / 202.1 MB, free: 8.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00229/0.002291, allocations: 113.2 kB / 247.1 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1908/0.1908, allocations: 39.94 MB / 331.9 MB, free: 4.883 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.302e-06/6.322e-06, allocations: 0 / 392.8 MB, free: 75.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09785/0.09787, allocations: 54.87 MB / 447.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2906/0.3885, allocations: 84.12 MB / 0.5193 GB, free: 10 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.3887, allocations: 61.8 kB / 0.5194 GB, free: 10 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01712/0.4059, allocations: 5.649 MB / 0.5249 GB, free: 7.809 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.4059, allocations: 6.5 kB / 0.5249 GB, free: 7.809 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001575/0.4075, allocations: 0.7635 MB / 0.5256 GB, free: 7.164 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.4076, allocations: 7.688 kB / 0.5256 GB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001927/0.4078, allocations: 51.78 kB / 0.5257 GB, free: 7.141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.408, allocations: 201.8 kB / 0.5259 GB, free: 6.918 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.898e-05/0.408, allocations: 14.59 kB / 0.5259 GB, free: 6.918 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.568e-05/0.4081, allocations: 29.39 kB / 0.5259 GB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005384/0.4087, allocations: 230 kB / 0.5261 GB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005773/0.4093, allocations: 334.9 kB / 0.5265 GB, free: 6.785 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.4093, allocations: 5.188 kB / 0.5265 GB, free: 6.781 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.832e-05/0.4093, allocations: 10.09 kB / 0.5265 GB, free: 6.777 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.4093, allocations: 7.844 kB / 0.5265 GB, free: 6.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001933/0.4113, allocations: 0.8932 MB / 0.5274 GB, free: 6.273 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004385/0.4117, allocations: 279.2 kB / 0.5276 GB, free: 6.234 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002332/0.412, allocations: 143.6 kB / 0.5278 GB, free: 6.223 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.494e-05/0.412, allocations: 4.016 kB / 0.5278 GB, free: 6.223 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003765/0.4124, allocations: 288.4 kB / 0.528 GB, free: 6.059 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 2.364e-06/0.4124, allocations: 0 / 0.528 GB, free: 6.059 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.0006626/0.4131, allocations: 310.3 kB / 0.5283 GB, free: 5.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.186e-05/0.4132, allocations: 196.1 kB / 0.5285 GB, free: 5.762 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.4134, allocations: 196.1 kB / 0.5287 GB, free: 5.637 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.018e-05/0.4134, allocations: 38.94 kB / 0.5287 GB, free: 5.602 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.012e-05/0.4135, allocations: 156.8 kB / 0.5289 GB, free: 5.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.4136, allocations: 100.3 kB / 0.529 GB, free: 5.418 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.278e-05/0.4137, allocations: 4 kB / 0.529 GB, free: 5.414 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.15e-05/0.4138, allocations: 345.3 kB / 0.5293 GB, free: 5.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002529/0.414, allocations: 126 kB / 0.5294 GB, free: 5.086 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002616/0.4143, allocations: 170.9 kB / 0.5296 GB, free: 5.055 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.4146, allocations: 102 kB / 0.5297 GB, free: 5.039 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4146, allocations: 0 / 0.5297 GB, free: 5.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009487/0.4155, allocations: 407.8 kB / 0.5301 GB, free: 4.926 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.4156, allocations: 4 kB / 0.5301 GB, free: 4.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4156, allocations: 1.344 kB / 0.5301 GB, free: 4.926 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001522/0.4157, allocations: 37.89 kB / 0.5301 GB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.416, allocations: 38.86 kB / 0.5302 GB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008604/0.4168, allocations: 1.336 MB / 0.5315 GB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003837/0.4172, allocations: 76.8 kB / 0.5315 GB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.346e-05/0.4173, allocations: 17.47 kB / 0.5316 GB, free: 3.539 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 60 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,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 (60): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 4 * 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.0001751/0.4175, allocations: 198.9 kB / 0.5318 GB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.653e-05/0.4175, allocations: 35.62 kB / 0.5318 GB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.456e-05/0.4176, allocations: 33.27 kB / 0.5318 GB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.4176, allocations: 8 kB / 0.5318 GB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4176, allocations: 0 / 0.5318 GB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.443e-06/0.4176, allocations: 3.906 kB / 0.5318 GB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008012/0.4184, allocations: 0.7343 MB / 0.5325 GB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4185, allocations: 0 / 0.5325 GB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.4186, allocations: 43.28 kB / 0.5326 GB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.4186, allocations: 3.938 kB / 0.5326 GB, free: 2.609 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.709e-05/0.4187, allocations: 11.56 kB / 0.5326 GB, free: 2.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.4187, allocations: 7.984 kB / 0.5326 GB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4187, allocations: 0 / 0.5326 GB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004543/0.4192, allocations: 444.4 kB / 0.533 GB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.356e-05/0.4192, allocations: 112.6 kB / 0.5331 GB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.871e-05/0.4193, allocations: 8 kB / 0.5331 GB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003755/0.4197, allocations: 75.62 kB / 0.5332 GB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.4199, allocations: 62.33 kB / 0.5333 GB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.895e-05/0.4199, allocations: 15.42 kB / 0.5333 GB, free: 1.957 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.095e-05/0.42, allocations: 137.9 kB / 0.5334 GB, free: 1.84 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005028/0.4205, allocations: 102.3 kB / 0.5335 GB, free: 1.742 MB / 346.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 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,table1.y,table1.nextTime,table1.index,table2.y,table2.nextTime,table2.index,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: 19 (table1.y,table1.nextTime,table1.index,$whenCondition4,table2.y,table2.nextTime,table2.index,$whenCondition3,pre1.u,edge1.u,fallingEdge.not_u,change1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,triggeredTrapezoid.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.0002987/0.4208, allocations: 161.3 kB / 0.5337 GB, free: 1.582 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006096/0.4214, allocations: 0.5443 MB / 0.5342 GB, free: 1.105 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4214, allocations: 0 / 0.5342 GB, free: 1.105 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002832/0.4217, allocations: 279.2 kB / 0.5345 GB, free: 0.9023 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.422, allocations: 15.3 kB / 0.5345 GB, free: 0.8906 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008665/0.4228, allocations: 459 kB / 0.5349 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004705/0.4233, allocations: 0.8349 MB / 0.5357 GB, free: 15.63 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4233, allocations: 0 / 0.5357 GB, free: 15.63 MB / 362.7 MB Notification: Performance of Templates: time 0.009304/0.4326, allocations: 4.764 MB / 0.5404 GB, free: 10.91 MB / 362.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe 2>&1)