Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",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.0009178/0.0009179, allocations: 183.6 kB / 8.135 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.084/1.084, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0008783/0.0008783, allocations: 100.7 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08723/0.08814, allocations: 55.8 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.2561, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06955/0.3257, allocations: 75.26 MB / 462.3 MB, free: 11.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001669/0.3259, allocations: 68.62 kB / 462.3 MB, free: 11.47 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.007012/0.3329, allocations: 2.97 MB / 465.3 MB, free: 8.457 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.333, allocations: 12 kB / 465.3 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.639e-05/0.333, allocations: 23.78 kB / 465.3 MB, free: 8.422 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002223/0.3333, allocations: 219.6 kB / 465.5 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.3333, allocations: 8 kB / 465.5 MB, free: 8.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.3333, allocations: 19.98 kB / 465.6 MB, free: 8.141 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002651/0.3336, allocations: 141 kB / 465.7 MB, free: 8.004 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002955/0.3339, allocations: 201.7 kB / 465.9 MB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3339, allocations: 3.906 kB / 465.9 MB, free: 7.789 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/0.334, allocations: 4 kB / 465.9 MB, free: 7.785 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.334, allocations: 8 kB / 465.9 MB, free: 7.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008258/0.3348, allocations: 0.6375 MB / 466.6 MB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.3351, allocations: 144.1 kB / 466.7 MB, free: 6.949 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.3352, allocations: 69.17 kB / 466.8 MB, free: 6.879 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.3352, allocations: 4.188 kB / 466.8 MB, free: 6.875 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001532/0.3353, allocations: 108.8 kB / 466.9 MB, free: 6.758 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.806e-06/0.3354, allocations: 3.984 kB / 466.9 MB, free: 6.754 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.00027/0.3356, allocations: 143 kB / 467 MB, free: 6.609 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.3357, allocations: 55.41 kB / 467.1 MB, free: 6.543 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.078e-05/0.3358, allocations: 133 kB / 467.2 MB, free: 6.402 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.3358, allocations: 29.7 kB / 467.2 MB, free: 6.367 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.984e-05/0.3359, allocations: 129.5 kB / 467.4 MB, free: 6.238 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.353e-05/0.3359, allocations: 59.25 kB / 467.4 MB, free: 6.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.368e-06/0.3359, allocations: 4 kB / 467.4 MB, free: 6.176 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.318e-05/0.336, allocations: 322.8 kB / 467.7 MB, free: 5.852 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.052e-05/0.3361, allocations: 52.66 kB / 467.8 MB, free: 5.797 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.3363, allocations: 123.7 kB / 467.9 MB, free: 5.652 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.882e-05/0.3364, allocations: 59.95 kB / 468 MB, free: 5.594 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3364, allocations: 0 / 468 MB, free: 5.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002915/0.3367, allocations: 205.2 kB / 468.2 MB, free: 5.387 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.3367, allocations: 8.219 kB / 468.2 MB, free: 5.379 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3367, allocations: 4 kB / 468.2 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.3367, allocations: 4 kB / 468.2 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.3368, allocations: 37.23 kB / 468.2 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.3369, allocations: 7.984 kB / 468.2 MB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.194e-05/0.337, allocations: 11.94 kB / 468.2 MB, free: 5.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.337, allocations: 8 kB / 468.2 MB, free: 5.309 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 9.034e-05/0.3371, allocations: 127.9 kB / 468.4 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.204e-05/0.3371, allocations: 15.89 kB / 468.4 MB, free: 5.164 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003101/0.3374, allocations: 172.9 kB / 468.6 MB, free: 4.992 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.3374, allocations: 4 kB / 468.6 MB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3375, allocations: 0 / 468.6 MB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3375, allocations: 0 / 468.6 MB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006057/0.3381, allocations: 495.8 kB / 469 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3381, allocations: 0 / 469 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.928e-05/0.3382, allocations: 27.92 kB / 469.1 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3382, allocations: 0 / 469.1 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.3382, allocations: 0 / 469.1 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.3382, allocations: 1.875 kB / 469.1 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3382, allocations: 4 kB / 469.1 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002477/0.3385, allocations: 247.2 kB / 469.3 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003421/0.3388, allocations: 0.6213 MB / 469.9 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.664e-05/0.3389, allocations: 92.86 kB / 470 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.3389, allocations: 0 / 470 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.568e-05/0.339, allocations: 15.92 kB / 470 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.335e-05/0.3391, allocations: 23.97 kB / 470.1 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.3391, allocations: 15.89 kB / 470.1 MB, free: 3.367 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.216e-05/0.3391, allocations: 88.66 kB / 470.2 MB, free: 3.281 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008098/0.34, allocations: 36 kB / 470.2 MB, free: 3.246 MB / 346.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: 19 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.0001439/0.3401, allocations: 119.7 kB / 470.3 MB, free: 3.121 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002413/0.3404, allocations: 159.8 kB / 470.5 MB, free: 2.965 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3404, allocations: 4.438 kB / 470.5 MB, free: 2.961 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.3405, allocations: 75.94 kB / 470.6 MB, free: 2.887 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001799/0.3407, allocations: 15.98 kB / 470.6 MB, free: 2.871 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004223/0.3411, allocations: 216.6 kB / 470.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000296/0.3414, allocations: 0.7631 MB / 471.5 MB, free: 1.844 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3414, allocations: 3.938 kB / 471.6 MB, free: 1.84 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)