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"}) [: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 4.0.0+maint.om/package.mo): time 0.0009669/0.0009669, allocations: 169.3 kB / 8.514 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.155/1.155, allocations: 221.4 MB / 230.3 MB, free: 7.758 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.0009996/0.0009996, allocations: 95.67 kB / 281.2 MB, free: 5.508 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.1558/0.1558, allocations: 44.14 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1934/0.3492, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09689/0.4461, allocations: 61.92 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2538/0.7, allocations: 93.57 MB / 0.5855 GB, free: 3.141 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001815/0.7002, allocations: 63.97 kB / 0.5856 GB, free: 3.078 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.03674/0.737, allocations: 13.48 MB / 0.5988 GB, free: 5.531 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.737, allocations: 19.81 kB / 0.5988 GB, free: 5.512 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.7372, allocations: 63.25 kB / 0.5989 GB, free: 5.449 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008005/0.738, allocations: 414 kB / 0.5992 GB, free: 5.004 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.051e-05/0.7381, allocations: 15.98 kB / 0.5993 GB, free: 4.988 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.598e-05/0.7382, allocations: 28 kB / 0.5993 GB, free: 4.961 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005201/0.7387, allocations: 246 kB / 0.5995 GB, free: 4.723 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005807/0.7393, allocations: 381.8 kB / 0.5999 GB, free: 4.332 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.7393, allocations: 0 / 0.5999 GB, free: 4.332 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.647e-05/0.7393, allocations: 0 / 0.5999 GB, free: 4.332 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.7394, allocations: 12 kB / 0.5999 GB, free: 4.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.7412, allocations: 1.054 MB / 0.6009 GB, free: 3.227 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004883/0.7417, allocations: 332.8 kB / 0.6012 GB, free: 2.891 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002164/0.742, allocations: 142.2 kB / 0.6014 GB, free: 2.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.742, allocations: 8.438 kB / 0.6014 GB, free: 2.742 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003526/0.7424, allocations: 236.4 kB / 0.6016 GB, free: 2.496 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 1.813e-06/0.7424, allocations: 4 kB / 0.6016 GB, free: 2.492 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.0006139/0.743, allocations: 342.7 kB / 0.6019 GB, free: 2.152 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/0.7431, allocations: 133 kB / 0.6021 GB, free: 1.992 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004838/0.7436, allocations: 456.9 kB / 0.6025 GB, free: 1.543 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.246e-05/0.7436, allocations: 33.7 kB / 0.6025 GB, free: 1.504 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.7437, allocations: 185.4 kB / 0.6027 GB, free: 1.316 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.7438, allocations: 114.5 kB / 0.6028 GB, free: 1.203 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.228e-05/0.7439, allocations: 0 / 0.6028 GB, free: 1.203 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.744, allocations: 362.8 kB / 0.6032 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002529/0.7443, allocations: 145.2 kB / 0.6033 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002898/0.7446, allocations: 220.7 kB / 0.6035 GB, free: 468 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.7448, allocations: 115.1 kB / 0.6036 GB, free: 356 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.7448, allocations: 4 kB / 0.6036 GB, free: 352 kB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008408/0.7456, allocations: 432.2 kB / 0.604 GB, free: 15.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.7456, allocations: 4.062 kB / 0.6041 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.7457, allocations: 8 kB / 0.6041 GB, free: 15.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001405/0.7458, allocations: 40.75 kB / 0.6041 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002792/0.7461, allocations: 59.89 kB / 0.6042 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/0.7471, allocations: 1.338 MB / 0.6055 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004315/0.7476, allocations: 87.83 kB / 0.6055 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/0.7476, allocations: 16 kB / 0.6056 GB, free: 14.24 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.0001523/0.7478, allocations: 142.1 kB / 0.6057 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.142e-05/0.7479, allocations: 51.34 kB / 0.6057 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006666/0.7486, allocations: 380.5 kB / 0.6061 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.7486, allocations: 4 kB / 0.6061 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.7486, allocations: 4 kB / 0.6061 GB, free: 13.65 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.7486, allocations: 3.984 kB / 0.6061 GB, free: 13.65 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.75, allocations: 0.9468 MB / 0.607 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.75, allocations: 0 / 0.607 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/0.7502, allocations: 51.91 kB / 0.6071 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.7502, allocations: 0 / 0.6071 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.7503, allocations: 7.984 kB / 0.6071 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.7503, allocations: 4 kB / 0.6071 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.7503, allocations: 0 / 0.6071 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006105/0.7509, allocations: 462.5 kB / 0.6075 GB, free: 12.13 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006971/0.7516, allocations: 0.8311 MB / 0.6084 GB, free: 11.28 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.7517, allocations: 144.4 kB / 0.6085 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.043e-05/0.7518, allocations: 7.984 kB / 0.6085 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004238/0.7523, allocations: 75.94 kB / 0.6086 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.7524, allocations: 64.33 kB / 0.6086 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.103e-05/0.7525, allocations: 19.98 kB / 0.6087 GB, free: 10.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003581/0.7528, allocations: 335.2 kB / 0.609 GB, free: 10.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001178/0.754, allocations: 115.8 kB / 0.6091 GB, free: 10.51 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.0007213/0.7548, allocations: 355.2 kB / 0.6094 GB, free: 10.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007668/0.7555, allocations: 470 kB / 0.6099 GB, free: 9.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.7555, allocations: 0 / 0.6099 GB, free: 9.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003122/0.7559, allocations: 197.5 kB / 0.6101 GB, free: 9.578 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004839/0.7564, allocations: 82.17 kB / 0.6101 GB, free: 9.496 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.7577, allocations: 0.6663 MB / 0.6108 GB, free: 8.812 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006304/0.7584, allocations: 0.9298 MB / 0.6117 GB, free: 7.848 MB / 426.7 MB Notification: Performance of SimCode: time 2.7e-07/0.7584, allocations: 0 / 0.6117 GB, free: 7.848 MB / 426.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)