Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",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.001321/0.001321, allocations: 183 kB / 8.479 MB, free: 1.875 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.264/1.264, allocations: 205.2 MB / 214.1 MB, free: 5.449 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.0009136/0.0009134, allocations: 88.73 kB / 262.1 MB, free: 5.508 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1746/0.1755, allocations: 52.95 MB / 315 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07649/0.252, allocations: 47.57 MB / 362.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.244/0.4961, allocations: 74.97 MB / 437.6 MB, free: 11.1 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001706/0.4963, allocations: 66.81 kB / 437.7 MB, free: 11.1 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.007061/0.5033, allocations: 3.065 MB / 440.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.5034, allocations: 8.344 kB / 440.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.613e-05/0.5035, allocations: 26.12 kB / 440.8 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/0.5037, allocations: 232.9 kB / 441 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.5037, allocations: 12.47 kB / 441 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.885e-05/0.5037, allocations: 15.53 kB / 441 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002549/0.504, allocations: 146.2 kB / 441.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.5043, allocations: 229 kB / 441.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.5043, allocations: 3.875 kB / 441.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.164e-05/0.5044, allocations: 4.406 kB / 441.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.5044, allocations: 3.844 kB / 441.4 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007996/0.5052, allocations: 0.9085 MB / 442.3 MB, free: 9.605 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.5054, allocations: 125.3 kB / 442.4 MB, free: 9.582 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.213e-05/0.5055, allocations: 70.59 kB / 442.5 MB, free: 9.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.5055, allocations: 8.062 kB / 442.5 MB, free: 9.566 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001257/0.5056, allocations: 99.23 kB / 442.6 MB, free: 9.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.793e-06/0.5056, allocations: 0 / 442.6 MB, free: 9.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002411/0.5059, allocations: 140.9 kB / 442.7 MB, free: 9.473 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.131e-05/0.5059, allocations: 52.06 kB / 442.8 MB, free: 9.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.362e-05/0.506, allocations: 149.4 kB / 442.9 MB, free: 9.305 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.506, allocations: 29.52 kB / 443 MB, free: 9.273 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.262e-05/0.5061, allocations: 143.6 kB / 443.1 MB, free: 9.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.712e-05/0.5061, allocations: 60.55 kB / 443.2 MB, free: 9.125 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.528e-06/0.5061, allocations: 0 / 443.2 MB, free: 9.125 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.798e-05/0.5062, allocations: 327.5 kB / 443.5 MB, free: 8.812 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.166e-05/0.5063, allocations: 50.7 kB / 443.5 MB, free: 8.809 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.5064, allocations: 134.6 kB / 443.7 MB, free: 8.723 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.092e-05/0.5065, allocations: 50.25 kB / 443.7 MB, free: 8.723 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.5065, allocations: 3.875 kB / 443.7 MB, free: 8.723 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002711/0.5068, allocations: 215.6 kB / 443.9 MB, free: 8.664 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.5068, allocations: 7.75 kB / 443.9 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.5068, allocations: 3.844 kB / 443.9 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.5068, allocations: 4.562 kB / 443.9 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.507, allocations: 35.36 kB / 444 MB, free: 8.656 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.507, allocations: 8.234 kB / 444 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.274e-05/0.5071, allocations: 13.7 kB / 444 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.5071, allocations: 12.34 kB / 444 MB, free: 8.645 MB / 314.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: 30 ($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,greaterEqual.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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 6.948e-05/0.5072, allocations: 126.3 kB / 444.1 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.009e-05/0.5072, allocations: 16.34 kB / 444.1 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002879/0.5075, allocations: 154.2 kB / 444.3 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.5075, allocations: 3.969 kB / 444.3 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5075, allocations: 7.938 kB / 444.3 MB, free: 8.469 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.5075, allocations: 5.312 kB / 444.3 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005297/0.5081, allocations: 0.5095 MB / 444.8 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5081, allocations: 0 / 444.8 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.245e-05/0.5082, allocations: 21.75 kB / 444.8 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.5082, allocations: 0 / 444.8 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.5082, allocations: 13.05 kB / 444.9 MB, free: 8.141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.5082, allocations: 4 kB / 444.9 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5082, allocations: 0 / 444.9 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000218/0.5084, allocations: 246.9 kB / 445.1 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002395/0.5087, allocations: 0.6128 MB / 445.7 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.431e-05/0.5087, allocations: 89.45 kB / 445.8 MB, free: 7.375 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.5088, allocations: 5.219 kB / 445.8 MB, free: 7.371 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.331e-05/0.5089, allocations: 5.531 kB / 445.8 MB, free: 7.371 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.82e-05/0.5089, allocations: 24.08 kB / 445.8 MB, free: 7.367 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.5089, allocations: 7.703 kB / 445.8 MB, free: 7.367 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.41e-05/0.509, allocations: 92.78 kB / 445.9 MB, free: 7.293 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008334/0.5098, allocations: 35.38 kB / 446 MB, free: 7.293 MB / 314.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 (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,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001164/0.5099, allocations: 111.8 kB / 446.1 MB, free: 7.199 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002208/0.5102, allocations: 169.9 kB / 446.2 MB, free: 7.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.5102, allocations: 0 / 446.2 MB, free: 7.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.201e-05/0.5103, allocations: 72.88 kB / 446.3 MB, free: 7.176 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001874/0.5105, allocations: 16.39 kB / 446.3 MB, free: 7.172 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004246/0.5109, allocations: 227 kB / 446.5 MB, free: 7.062 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/0.5111, allocations: 0.7689 MB / 447.3 MB, free: 6.355 MB / 314.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5111, allocations: 0 / 447.3 MB, free: 6.355 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)