Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",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.001001/0.001001, allocations: 184 kB / 8.138 MB, free: 2.223 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.055/1.055, allocations: 221.4 MB / 230 MB, free: 3.074 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.000808/0.000808, allocations: 95.39 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08719/0.08802, allocations: 55.81 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.2542, allocations: 50.38 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07211/0.3264, allocations: 75.9 MB / 462.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001622/0.3266, allocations: 74.38 kB / 463 MB, free: 10.91 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.007505/0.3341, allocations: 3.117 MB / 466.1 MB, free: 7.754 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.3341, allocations: 12 kB / 466.1 MB, free: 7.742 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.547e-05/0.3342, allocations: 23.72 kB / 466.1 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002284/0.3344, allocations: 230.7 kB / 466.3 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.3345, allocations: 8 kB / 466.3 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.244e-05/0.3345, allocations: 16 kB / 466.4 MB, free: 7.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002613/0.3348, allocations: 145 kB / 466.5 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003209/0.3351, allocations: 232.2 kB / 466.7 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.3351, allocations: 0.75 kB / 466.7 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.02e-05/0.3351, allocations: 0 / 466.7 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.3352, allocations: 11.94 kB / 466.7 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008874/0.3361, allocations: 0.9022 MB / 467.6 MB, free: 6.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002171/0.3363, allocations: 149.7 kB / 467.8 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.3364, allocations: 74.17 kB / 467.9 MB, free: 5.828 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.3364, allocations: 8.188 kB / 467.9 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001754/0.3366, allocations: 130.1 kB / 468 MB, free: 5.676 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.363e-06/0.3366, allocations: 0 / 468 MB, free: 5.676 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002554/0.3369, allocations: 138.2 kB / 468.1 MB, free: 5.535 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.3369, allocations: 85.09 kB / 468.2 MB, free: 5.434 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.378e-05/0.337, allocations: 144.7 kB / 468.4 MB, free: 5.285 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.3371, allocations: 29.7 kB / 468.4 MB, free: 5.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.089e-05/0.3371, allocations: 132.3 kB / 468.5 MB, free: 5.117 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.565e-05/0.3372, allocations: 55.33 kB / 468.6 MB, free: 5.062 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.278e-06/0.3372, allocations: 3.938 kB / 468.6 MB, free: 5.059 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3373, allocations: 330.7 kB / 468.9 MB, free: 4.727 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.265e-05/0.3374, allocations: 54.41 kB / 468.9 MB, free: 4.676 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.3376, allocations: 129.7 kB / 469.1 MB, free: 4.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001094/0.3377, allocations: 63.95 kB / 469.1 MB, free: 4.457 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3377, allocations: 3.938 kB / 469.1 MB, free: 4.453 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003118/0.338, allocations: 217.3 kB / 469.3 MB, free: 4.234 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.858e-06/0.338, allocations: 4 kB / 469.4 MB, free: 4.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.338, allocations: 4 kB / 469.4 MB, free: 4.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.338, allocations: 4.281 kB / 469.4 MB, free: 4.223 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.3382, allocations: 35.92 kB / 469.4 MB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.3382, allocations: 8.953 kB / 469.4 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.839e-05/0.3383, allocations: 11.84 kB / 469.4 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.809e-05/0.3383, allocations: 23.92 kB / 469.4 MB, free: 4.145 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.806e-05/0.3384, allocations: 121.4 kB / 469.6 MB, free: 4.023 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.193e-05/0.3385, allocations: 11.81 kB / 469.6 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002845/0.3387, allocations: 164.4 kB / 469.7 MB, free: 3.852 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3388, allocations: 7.984 kB / 469.7 MB, free: 3.844 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3388, allocations: 1.375 kB / 469.7 MB, free: 3.844 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.3388, allocations: 3.938 kB / 469.7 MB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006019/0.3394, allocations: 0.51 MB / 470.3 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3394, allocations: 3.984 kB / 470.3 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.132e-05/0.3395, allocations: 19.94 kB / 470.3 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3395, allocations: 4 kB / 470.3 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.3395, allocations: 0 / 470.3 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3395, allocations: 3.984 kB / 470.3 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3395, allocations: 4 kB / 470.3 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002607/0.3398, allocations: 262.3 kB / 470.5 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003607/0.3402, allocations: 0.6439 MB / 471.2 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.784e-05/0.3402, allocations: 88.95 kB / 471.3 MB, free: 2.188 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.3402, allocations: 0 / 471.3 MB, free: 2.188 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.3403, allocations: 12.52 kB / 471.3 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.514e-05/0.3404, allocations: 23.97 kB / 471.3 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.3404, allocations: 8 kB / 471.3 MB, free: 2.145 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-05/0.3405, allocations: 96.52 kB / 471.4 MB, free: 2.051 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008143/0.3413, allocations: 32.75 kB / 471.4 MB, free: 2.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001291/0.3414, allocations: 111.2 kB / 471.6 MB, free: 1.898 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002563/0.3417, allocations: 160.3 kB / 471.7 MB, free: 1.742 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3417, allocations: 8.125 kB / 471.7 MB, free: 1.734 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.3418, allocations: 83.8 kB / 471.8 MB, free: 1.652 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001795/0.342, allocations: 14.28 kB / 471.8 MB, free: 1.645 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004544/0.3425, allocations: 237.3 kB / 472 MB, free: 1.379 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003474/0.3428, allocations: 0.7718 MB / 472.8 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3429, allocations: 0 / 472.8 MB, free: 0.5781 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)