Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",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.001155/0.001155, allocations: 178.9 kB / 8.477 MB, free: 1.883 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.057/1.057, allocations: 205.2 MB / 214.1 MB, free: 5.094 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.0008175/0.0008175, allocations: 90.25 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1493/0.1502, allocations: 52.96 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06184/0.212, allocations: 47.57 MB / 362.6 MB, free: 9.891 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2013/0.4133, allocations: 78.53 MB / 441.2 MB, free: 11.05 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001765/0.4135, allocations: 65.62 kB / 441.2 MB, free: 11.05 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.01433/0.4279, allocations: 5.795 MB / 447 MB, free: 10.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.4279, allocations: 11.66 kB / 447 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.796e-05/0.428, allocations: 15.62 kB / 447 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.4283, allocations: 265.4 kB / 447.3 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.4284, allocations: 7.906 kB / 447.3 MB, free: 9.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.4284, allocations: 3.969 kB / 447.3 MB, free: 9.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001082/0.4285, allocations: 40.08 kB / 447.4 MB, free: 9.832 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001435/0.4287, allocations: 110.4 kB / 447.5 MB, free: 9.746 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.4287, allocations: 0 / 447.5 MB, free: 9.746 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.4287, allocations: 0 / 447.5 MB, free: 9.746 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.4287, allocations: 7.844 kB / 447.5 MB, free: 9.742 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004696/0.4292, allocations: 0.5812 MB / 448.1 MB, free: 9.211 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000134/0.4293, allocations: 122.9 kB / 448.2 MB, free: 9.121 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.407e-05/0.4294, allocations: 45.39 kB / 448.2 MB, free: 9.094 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.4294, allocations: 0 / 448.2 MB, free: 9.094 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000109/0.4295, allocations: 114.2 kB / 448.3 MB, free: 9.004 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.4296, allocations: 0 / 448.3 MB, free: 9.004 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002182/0.4298, allocations: 118 kB / 448.4 MB, free: 8.945 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.4298, allocations: 132.3 kB / 448.6 MB, free: 8.789 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/0.43, allocations: 249.6 kB / 448.8 MB, free: 8.668 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.4301, allocations: 25.7 kB / 448.8 MB, free: 8.637 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.156e-05/0.4301, allocations: 107.5 kB / 448.9 MB, free: 8.543 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.4301, allocations: 22.91 kB / 449 MB, free: 8.527 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-06/0.4301, allocations: 0 / 449 MB, free: 8.527 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.709e-05/0.4302, allocations: 337.3 kB / 449.3 MB, free: 8.207 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.403e-05/0.4302, allocations: 25.94 kB / 449.3 MB, free: 8.203 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.853e-05/0.4303, allocations: 74.17 kB / 449.4 MB, free: 8.145 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.948e-05/0.4304, allocations: 36.05 kB / 449.4 MB, free: 8.133 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.4304, allocations: 0 / 449.4 MB, free: 8.133 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001619/0.4305, allocations: 126.2 kB / 449.6 MB, free: 8.074 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.4306, allocations: 3.844 kB / 449.6 MB, free: 8.074 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4306, allocations: 3.844 kB / 449.6 MB, free: 8.074 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.4306, allocations: 3.938 kB / 449.6 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.621e-05/0.4307, allocations: 26.3 kB / 449.6 MB, free: 8.059 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.309e-06/0.4307, allocations: 3.875 kB / 449.6 MB, free: 8.059 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.4308, allocations: 15.2 kB / 449.6 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.4308, allocations: 3.844 kB / 449.6 MB, free: 8.055 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 5.658e-05/0.4309, allocations: 111.8 kB / 449.7 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.169e-05/0.4309, allocations: 23.41 kB / 449.7 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001555/0.4311, allocations: 104 kB / 449.8 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.4311, allocations: 3.812 kB / 449.9 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4311, allocations: 0 / 449.9 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.4311, allocations: 0 / 449.9 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/0.4313, allocations: 219.6 kB / 450.1 MB, free: 7.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.4313, allocations: 0 / 450.1 MB, free: 7.691 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.402e-05/0.4313, allocations: 15.48 kB / 450.1 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.4313, allocations: 0 / 450.1 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.4313, allocations: 7.688 kB / 450.1 MB, free: 7.684 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.4314, allocations: 4 kB / 450.1 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4314, allocations: 0 / 450.1 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001615/0.4315, allocations: 181.2 kB / 450.3 MB, free: 7.543 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001864/0.4317, allocations: 0.5479 MB / 450.8 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.969e-05/0.4318, allocations: 111.4 kB / 450.9 MB, free: 6.922 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.833e-05/0.4318, allocations: 3.812 kB / 450.9 MB, free: 6.922 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.4319, allocations: 15.7 kB / 450.9 MB, free: 6.914 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.135e-05/0.432, allocations: 18.55 kB / 451 MB, free: 6.906 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.432, allocations: 7.828 kB / 451 MB, free: 6.902 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001361/0.4322, allocations: 204 kB / 451.2 MB, free: 6.809 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008056/0.433, allocations: 45.09 kB / 451.2 MB, free: 6.797 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000589/0.4336, allocations: 326.1 kB / 451.5 MB, free: 6.539 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001687/0.4337, allocations: 83.23 kB / 451.6 MB, free: 6.527 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4338, allocations: 7.812 kB / 451.6 MB, free: 6.523 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.673e-05/0.4338, allocations: 43.81 kB / 451.7 MB, free: 6.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.4341, allocations: 46.39 kB / 451.7 MB, free: 6.504 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004443/0.4346, allocations: 258.6 kB / 452 MB, free: 6.359 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000178/0.4348, allocations: 0.7628 MB / 452.7 MB, free: 5.625 MB / 314.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4348, allocations: 0 / 452.7 MB, free: 5.625 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)