Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.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) 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(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",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.001089/0.001089, allocations: 183.7 kB / 8.138 MB, free: 2.188 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.128/1.128, allocations: 221.4 MB / 230 MB, free: 3.297 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.0009516/0.0009517, allocations: 98.22 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09075/0.09173, allocations: 55.81 MB / 336.6 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.2886, allocations: 50.39 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08342/0.372, allocations: 79.53 MB / 466.5 MB, free: 7.227 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.3723, allocations: 72.66 kB / 466.6 MB, free: 7.156 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.02467/0.397, allocations: 9.347 MB / 475.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.397, allocations: 8 kB / 475.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.17e-05/0.3971, allocations: 35.53 kB / 476 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005119/0.3976, allocations: 335 kB / 476.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.3977, allocations: 4 kB / 476.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.24e-05/0.3977, allocations: 8 kB / 476.3 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000139/0.3978, allocations: 63.98 kB / 476.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/0.3981, allocations: 136.1 kB / 476.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.3981, allocations: 3.938 kB / 476.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.3981, allocations: 0 / 476.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.3981, allocations: 4 kB / 476.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006238/0.3987, allocations: 492.8 kB / 477 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001787/0.3989, allocations: 115.5 kB / 477.1 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.174e-05/0.399, allocations: 40.86 kB / 477.2 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.399, allocations: 4 kB / 477.2 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000131/0.3992, allocations: 99.31 kB / 477.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.3992, allocations: 3.938 kB / 477.3 MB, free: 12.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002636/0.3994, allocations: 143.7 kB / 477.4 MB, free: 12.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.3995, allocations: 111.9 kB / 477.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004117/0.3999, allocations: 375.4 kB / 477.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.4, allocations: 29.7 kB / 477.9 MB, free: 11.67 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.424e-05/0.4, allocations: 120 kB / 478 MB, free: 11.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/0.4001, allocations: 39.45 kB / 478.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-06/0.4001, allocations: 0 / 478.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4002, allocations: 346.8 kB / 478.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.174e-05/0.4003, allocations: 39.95 kB / 478.4 MB, free: 11.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.4004, allocations: 108.8 kB / 478.5 MB, free: 11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.35e-05/0.4005, allocations: 39.92 kB / 478.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.4005, allocations: 4 kB / 478.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002399/0.4008, allocations: 159.6 kB / 478.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.4008, allocations: 5.219 kB / 478.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.4008, allocations: 4 kB / 478.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.4008, allocations: 3.984 kB / 478.8 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.401, allocations: 32.06 kB / 478.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.421e-06/0.401, allocations: 3.984 kB / 478.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.4011, allocations: 11.91 kB / 478.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.4011, allocations: 4 kB / 478.8 MB, free: 10.73 MB / 362.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: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.965e-05/0.4012, allocations: 118.6 kB / 478.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.53e-05/0.4013, allocations: 31.61 kB / 479 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002783/0.4015, allocations: 168.4 kB / 479.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.4016, allocations: 0 / 479.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.4016, allocations: 0 / 479.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.4016, allocations: 3.906 kB / 479.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.4018, allocations: 286.8 kB / 479.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.4018, allocations: 3.984 kB / 479.4 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.055e-05/0.4019, allocations: 11.94 kB / 479.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.4019, allocations: 4 kB / 479.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.4019, allocations: 0 / 479.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.4019, allocations: 4.609 kB / 479.4 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4019, allocations: 4 kB / 479.4 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002345/0.4022, allocations: 183.7 kB / 479.6 MB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003471/0.4025, allocations: 0.5643 MB / 480.2 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.4027, allocations: 120.7 kB / 480.3 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.244e-05/0.4027, allocations: 3.984 kB / 480.3 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.4028, allocations: 12 kB / 480.3 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.153e-05/0.4029, allocations: 19.88 kB / 480.3 MB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.4029, allocations: 4 kB / 480.3 MB, free: 9.102 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002919/0.4032, allocations: 295.1 kB / 480.6 MB, free: 8.816 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008654/0.4041, allocations: 64.17 kB / 480.7 MB, free: 8.754 MB / 362.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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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.0006716/0.4048, allocations: 337.1 kB / 481 MB, free: 8.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002388/0.405, allocations: 116 kB / 481.1 MB, free: 8.406 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.405, allocations: 3.938 kB / 481.1 MB, free: 8.402 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.28e-05/0.4051, allocations: 59.91 kB / 481.2 MB, free: 8.344 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003601/0.4055, allocations: 63.34 kB / 481.2 MB, free: 8.281 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006975/0.4062, allocations: 384.1 kB / 481.6 MB, free: 7.879 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003871/0.4066, allocations: 0.8177 MB / 482.4 MB, free: 7.035 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4066, allocations: 0 / 482.4 MB, free: 7.035 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)