Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.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) 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(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 183.7 kB / 8.479 MB, free: 1.879 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.038/1.038, allocations: 205.2 MB / 214.1 MB, free: 1.879 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000831/0.0008313, allocations: 79.39 kB / 262.1 MB, free: 1.832 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1363/0.1371, allocations: 52.96 MB / 315 MB, free: 22.96 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06424/0.2014, allocations: 47.58 MB / 362.6 MB, free: 7.312 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2004/0.4019, allocations: 78.48 MB / 441.1 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000163/0.4021, allocations: 69.59 kB / 441.2 MB, free: 0.9453 MB / 314.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.02326/0.4253, allocations: 9.114 MB / 450.3 MB, free: 9.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.4254, allocations: 8.75 kB / 450.3 MB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.731e-05/0.4255, allocations: 35.53 kB / 450.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004888/0.426, allocations: 340.9 kB / 450.7 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.426, allocations: 7.984 kB / 450.7 MB, free: 8.934 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.292e-05/0.426, allocations: 11.94 kB / 450.7 MB, free: 8.922 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001324/0.4262, allocations: 64.23 kB / 450.7 MB, free: 8.883 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.4264, allocations: 140.2 kB / 450.9 MB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.595e-06/0.4264, allocations: 0 / 450.9 MB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.4264, allocations: 3.938 kB / 450.9 MB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.4264, allocations: 11.91 kB / 450.9 MB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006025/0.427, allocations: 487.7 kB / 451.4 MB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001696/0.4272, allocations: 110.6 kB / 451.5 MB, free: 8.223 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.851e-05/0.4273, allocations: 47.16 kB / 451.5 MB, free: 8.188 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.4273, allocations: 0 / 451.5 MB, free: 8.188 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001286/0.4274, allocations: 104.4 kB / 451.6 MB, free: 8.094 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.4274, allocations: 4 kB / 451.6 MB, free: 8.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002645/0.4277, allocations: 146.4 kB / 451.8 MB, free: 7.965 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.4278, allocations: 106.8 kB / 451.9 MB, free: 7.836 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003984/0.4282, allocations: 377.3 kB / 452.3 MB, free: 7.547 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.4282, allocations: 29.7 kB / 452.3 MB, free: 7.512 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.429e-05/0.4283, allocations: 114.8 kB / 452.4 MB, free: 7.406 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.502e-05/0.4283, allocations: 42.12 kB / 452.4 MB, free: 7.371 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-06/0.4283, allocations: 4 kB / 452.4 MB, free: 7.367 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.4284, allocations: 345.2 kB / 452.8 MB, free: 7.035 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.515e-05/0.4285, allocations: 38.11 kB / 452.8 MB, free: 7.012 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.843e-05/0.4286, allocations: 93.48 kB / 452.9 MB, free: 6.922 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.354e-05/0.4287, allocations: 45.34 kB / 452.9 MB, free: 6.891 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4287, allocations: 4 kB / 453 MB, free: 6.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002296/0.4289, allocations: 160.2 kB / 453.1 MB, free: 6.754 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.429, allocations: 4 kB / 453.1 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.429, allocations: 4 kB / 453.1 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.948e-06/0.429, allocations: 0 / 453.1 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.4291, allocations: 27.92 kB / 453.1 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.4291, allocations: 0 / 453.1 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.4292, allocations: 19.95 kB / 453.2 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.4293, allocations: 4 kB / 453.2 MB, free: 6.695 MB / 330.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.226e-05/0.4293, allocations: 118.2 kB / 453.3 MB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.64e-05/0.4294, allocations: 31.53 kB / 453.3 MB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000258/0.4297, allocations: 169.2 kB / 453.5 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.4297, allocations: 0 / 453.5 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4297, allocations: 11.89 kB / 453.5 MB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.4297, allocations: 0 / 453.5 MB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002285/0.4299, allocations: 288.1 kB / 453.8 MB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4299, allocations: 0 / 453.8 MB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.286e-05/0.43, allocations: 15.92 kB / 453.8 MB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.43, allocations: 4 kB / 453.8 MB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.43, allocations: 3.906 kB / 453.8 MB, free: 6.105 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.43, allocations: 0 / 453.8 MB, free: 6.105 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.43, allocations: 3.938 kB / 453.8 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002437/0.4303, allocations: 188.6 kB / 454 MB, free: 5.93 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003079/0.4306, allocations: 0.5597 MB / 454.5 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.281e-05/0.4307, allocations: 120 kB / 454.7 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/0.4308, allocations: 3.25 kB / 454.7 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.4309, allocations: 15.98 kB / 454.7 MB, free: 5.238 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.971e-05/0.4309, allocations: 19.86 kB / 454.7 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.431, allocations: 11.86 kB / 454.7 MB, free: 5.211 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002698/0.4312, allocations: 296.4 kB / 455 MB, free: 4.996 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009426/0.4322, allocations: 63.98 kB / 455.1 MB, free: 4.938 MB / 330.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.0006071/0.4328, allocations: 306.9 kB / 455.4 MB, free: 4.637 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002257/0.433, allocations: 120 kB / 455.5 MB, free: 4.551 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.433, allocations: 3.938 kB / 455.5 MB, free: 4.547 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.4332, allocations: 68.73 kB / 455.5 MB, free: 4.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.4335, allocations: 56.02 kB / 455.6 MB, free: 4.457 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000735/0.4343, allocations: 388.2 kB / 456 MB, free: 4.102 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004354/0.4347, allocations: 0.8158 MB / 456.8 MB, free: 3.27 MB / 330.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4347, allocations: 3.938 kB / 456.8 MB, free: 3.266 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)