Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [: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 trunk/package.mo): time 0.001504/0.001504, allocations: 196 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 225.5 MB / 234.4 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008842/0.0008842, allocations: 96.47 kB / 286.3 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.322e-06/6.552e-06, allocations: 0 / 343.1 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09722/0.09725, allocations: 51.48 MB / 394.6 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3077/0.405, allocations: 76.68 MB / 471.3 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.4053, allocations: 64.8 kB / 471.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.007009/0.4123, allocations: 2.706 MB / 474.1 MB, free: 13.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.798e-05/0.4124, allocations: 4 kB / 474.1 MB, free: 13.23 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.000538/0.4129, allocations: 435.4 kB / 474.5 MB, free: 12.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.413, allocations: 16.03 kB / 474.5 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.484e-05/0.4131, allocations: 30.5 kB / 474.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.4133, allocations: 222.9 kB / 474.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.4134, allocations: 11.38 kB / 474.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.942e-05/0.4134, allocations: 16 kB / 474.8 MB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003129/0.4138, allocations: 137.9 kB / 474.9 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003585/0.4141, allocations: 239.4 kB / 475.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.4142, allocations: 4 kB / 475.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.4142, allocations: 3.281 kB / 475.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.4142, allocations: 8 kB / 475.2 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009279/0.4151, allocations: 0.8997 MB / 476.1 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.4154, allocations: 151.7 kB / 476.2 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.4155, allocations: 70.16 kB / 476.3 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.4155, allocations: 4.188 kB / 476.3 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001651/0.4157, allocations: 130.5 kB / 476.4 MB, free: 11.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.884e-06/0.4157, allocations: 0 / 476.4 MB, free: 11.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003066/0.416, allocations: 141.1 kB / 476.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.4161, allocations: 88.2 kB / 476.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.4162, allocations: 132.4 kB / 476.8 MB, free: 10.91 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.4162, allocations: 32.89 kB / 476.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.4163, allocations: 146.6 kB / 476.9 MB, free: 10.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.003e-05/0.4164, allocations: 52.84 kB / 477 MB, free: 10.71 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.095e-05/0.4164, allocations: 4.031 kB / 477 MB, free: 10.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.117e-05/0.4165, allocations: 324.7 kB / 477.3 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.4166, allocations: 60.55 kB / 477.4 MB, free: 10.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.4167, allocations: 122.7 kB / 477.5 MB, free: 10.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.4168, allocations: 66.88 kB / 477.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4168, allocations: 0 / 477.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003288/0.4172, allocations: 216.9 kB / 477.8 MB, free: 10.03 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.4172, allocations: 4 kB / 477.8 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.4172, allocations: 4 kB / 477.8 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.4172, allocations: 4 kB / 477.8 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.4174, allocations: 37.23 kB / 477.8 MB, free: 9.988 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.4174, allocations: 13.17 kB / 477.8 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.4175, allocations: 4.281 kB / 477.8 MB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-05/0.4176, allocations: 22.89 kB / 477.8 MB, free: 9.957 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,greaterEqual.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.288e-05/0.4177, allocations: 129.2 kB / 478 MB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.452e-05/0.4177, allocations: 11.91 kB / 478 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003343/0.418, allocations: 161.2 kB / 478.1 MB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.4181, allocations: 4 kB / 478.1 MB, free: 9.707 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4181, allocations: 0 / 478.1 MB, free: 9.707 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.4181, allocations: 3.188 kB / 478.1 MB, free: 9.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006317/0.4187, allocations: 0.5207 MB / 478.7 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.4187, allocations: 0 / 478.7 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.807e-05/0.4188, allocations: 22.3 kB / 478.7 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.4188, allocations: 3.984 kB / 478.7 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.4189, allocations: 5.156 kB / 478.7 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.4189, allocations: 4 kB / 478.7 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4189, allocations: 3.906 kB / 478.7 MB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002686/0.4192, allocations: 274.4 kB / 479 MB, free: 8.984 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.984e-05/0.4192, allocations: 88.92 kB / 479.1 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.4192, allocations: 3.188 kB / 479.1 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.4194, allocations: 11.28 kB / 479.1 MB, free: 8.871 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.4194, allocations: 24.55 kB / 479.1 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.4195, allocations: 6.156 kB / 479.1 MB, free: 8.855 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.22e-05/0.4195, allocations: 96.19 kB / 479.2 MB, free: 8.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003423/0.4199, allocations: 36 kB / 479.2 MB, free: 8.734 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,greaterEqual.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.0001753/0.4201, allocations: 109.6 kB / 479.3 MB, free: 8.621 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003383/0.4204, allocations: 167.4 kB / 479.5 MB, free: 8.508 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4204, allocations: 4.125 kB / 479.5 MB, free: 8.504 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.4205, allocations: 75.88 kB / 479.6 MB, free: 8.449 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002079/0.4208, allocations: 10.91 kB / 479.6 MB, free: 8.445 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004772/0.4212, allocations: 241.4 kB / 479.8 MB, free: 8.223 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002346/0.4215, allocations: 0.7724 MB / 480.6 MB, free: 7.453 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4215, allocations: 0 / 480.6 MB, free: 7.453 MB / 346.7 MB Notification: Performance of Templates: time 0.004546/0.426, allocations: 1.895 MB / 482.5 MB, free: 6.086 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches