Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.6458/0.6458, allocations: 110.8 MB / 118 MB, free: 14.6 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00179/0.00179, allocations: 156 kB / 143.7 MB, free: 4.922 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.512e-06/6.542e-06, allocations: 4 kB / 173.4 MB, free: 23.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04102/0.04105, allocations: 25.17 MB / 198.6 MB, free: 13.96 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1461/0.1872, allocations: 33.02 MB / 231.6 MB, free: 4.34 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001615/0.1874, allocations: 60.16 kB / 231.7 MB, free: 4.34 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.006515/0.1939, allocations: 2.534 MB / 234.2 MB, free: 4.184 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.194, allocations: 7.484 kB / 234.2 MB, free: 4.184 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0003845/0.1944, allocations: 430 kB / 234.7 MB, free: 3.805 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.1944, allocations: 7.625 kB / 234.7 MB, free: 3.805 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.055e-05/0.1945, allocations: 27.34 kB / 234.7 MB, free: 3.789 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.1947, allocations: 225.8 kB / 234.9 MB, free: 3.578 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.1947, allocations: 11.62 kB / 234.9 MB, free: 3.578 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.361e-05/0.1947, allocations: 16.91 kB / 234.9 MB, free: 3.578 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000258/0.195, allocations: 146.8 kB / 235.1 MB, free: 3.578 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.1953, allocations: 221 kB / 235.3 MB, free: 3.496 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.1953, allocations: 3.938 kB / 235.3 MB, free: 3.492 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.1954, allocations: 7.875 kB / 235.3 MB, free: 3.488 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.1954, allocations: 7.812 kB / 235.3 MB, free: 3.484 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007753/0.1961, allocations: 0.8776 MB / 236.2 MB, free: 2.883 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.1964, allocations: 138 kB / 236.3 MB, free: 2.848 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.368e-05/0.1964, allocations: 69.91 kB / 236.4 MB, free: 2.836 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.1965, allocations: 2.219 kB / 236.4 MB, free: 2.836 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001206/0.1966, allocations: 107.3 kB / 236.5 MB, free: 2.781 MB / 170.7 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.1966, allocations: 0 / 236.5 MB, free: 2.781 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.00023/0.1968, allocations: 141.2 kB / 236.6 MB, free: 2.738 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.289e-05/0.1969, allocations: 57 kB / 236.7 MB, free: 2.672 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.327e-05/0.197, allocations: 144 kB / 236.8 MB, free: 2.57 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.197, allocations: 29.39 kB / 236.9 MB, free: 2.539 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.92e-05/0.197, allocations: 138.3 kB / 237 MB, free: 2.434 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/0.1971, allocations: 52.69 kB / 237 MB, free: 2.402 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-06/0.1971, allocations: 0 / 237 MB, free: 2.402 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 4.383e-05/0.1971, allocations: 324.6 kB / 237.4 MB, free: 2.09 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.008e-05/0.1972, allocations: 54.52 kB / 237.4 MB, free: 2.086 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.1973, allocations: 129.1 kB / 237.5 MB, free: 1.996 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.389e-05/0.1974, allocations: 58.06 kB / 237.6 MB, free: 1.992 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1975, allocations: 0 / 237.6 MB, free: 1.992 MB / 170.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002642/0.1977, allocations: 217.2 kB / 237.8 MB, free: 1.934 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.928e-06/0.1977, allocations: 3.781 kB / 237.8 MB, free: 1.934 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1977, allocations: 3.844 kB / 237.8 MB, free: 1.934 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.1978, allocations: 3.875 kB / 237.8 MB, free: 1.934 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.1979, allocations: 35.8 kB / 237.9 MB, free: 1.93 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.1979, allocations: 9 kB / 237.9 MB, free: 1.926 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.198, allocations: 12.89 kB / 237.9 MB, free: 1.918 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.551e-05/0.1981, allocations: 20.36 kB / 237.9 MB, free: 1.914 MB / 170.7 MB Warning: Assuming fixed start value for the following 1 variables: transition1.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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,SetBoolean1.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 0.0001153/0.1982, allocations: 125.3 kB / 238 MB, free: 1.797 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/0.1982, allocations: 18.69 kB / 238 MB, free: 1.789 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002844/0.1985, allocations: 157.6 kB / 238.2 MB, free: 1.742 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.1985, allocations: 3.094 kB / 238.2 MB, free: 1.742 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1985, allocations: 3.906 kB / 238.2 MB, free: 1.738 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1985, allocations: 1.406 kB / 238.2 MB, free: 1.738 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005201/0.1991, allocations: 0.5049 MB / 238.7 MB, free: 1.43 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1991, allocations: 1.734 kB / 238.7 MB, free: 1.43 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.198e-05/0.1991, allocations: 28.39 kB / 238.7 MB, free: 1.418 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1992, allocations: 0 / 238.7 MB, free: 1.418 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.1992, allocations: 4.953 kB / 238.7 MB, free: 1.418 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1992, allocations: 0 / 238.7 MB, free: 1.418 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1992, allocations: 0 / 238.7 MB, free: 1.418 MB / 170.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002162/0.1994, allocations: 248 kB / 239 MB, free: 1.273 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.308e-05/0.1994, allocations: 92.05 kB / 239.1 MB, free: 1.168 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.1995, allocations: 1.219 kB / 239.1 MB, free: 1.168 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.925e-05/0.1996, allocations: 12.56 kB / 239.1 MB, free: 1.16 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.189e-05/0.1997, allocations: 26.02 kB / 239.1 MB, free: 1.156 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.1997, allocations: 6.406 kB / 239.1 MB, free: 1.156 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.068e-05/0.1997, allocations: 94.8 kB / 239.2 MB, free: 1.082 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0003037/0.2, allocations: 29.66 kB / 239.2 MB, free: 1.082 MB / 170.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,SetBoolean1.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.000121/0.2001, allocations: 112.8 kB / 239.4 MB, free: 0.9883 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.000223/0.2004, allocations: 161.5 kB / 239.5 MB, free: 0.9727 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2004, allocations: 0 / 239.5 MB, free: 0.9727 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 8.892e-05/0.2005, allocations: 77.17 kB / 239.6 MB, free: 0.9688 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001897/0.2007, allocations: 14.5 kB / 239.6 MB, free: 0.9648 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004332/0.2011, allocations: 221.5 kB / 239.8 MB, free: 0.8555 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002392/0.2014, allocations: 0.7688 MB / 240.6 MB, free: 16.14 MB / 186.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2014, allocations: 0 / 240.6 MB, free: 16.14 MB / 186.7 MB Notification: Performance of Templates: time 0.004427/0.2058, allocations: 1.859 MB / 242.4 MB, free: 15.98 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)