Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.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: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample") [: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.002369/0.002369, allocations: 179.8 kB / 8.151 MB, free: 2.195 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.673/1.673, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001232/0.001231, allocations: 89.94 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.357e-06/9.658e-06, allocations: 0 / 314.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2318, allocations: 47.55 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1116/0.3435, allocations: 74.35 MB / 436.2 MB, free: 11.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/0.3437, allocations: 63.97 kB / 436.2 MB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0107/0.3545, allocations: 2.463 MB / 438.7 MB, free: 9.254 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.3545, allocations: 4 kB / 438.7 MB, free: 9.25 MB / 330.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.0006641/0.3552, allocations: 445.8 kB / 439.1 MB, free: 8.777 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.3553, allocations: 8.031 kB / 439.1 MB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.796e-05/0.3554, allocations: 19.81 kB / 439.2 MB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.3557, allocations: 224.2 kB / 439.4 MB, free: 8.492 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.3557, allocations: 12 kB / 439.4 MB, free: 8.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.013e-05/0.3558, allocations: 15.94 kB / 439.4 MB, free: 8.465 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004631/0.3563, allocations: 137 kB / 439.5 MB, free: 8.332 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005072/0.3568, allocations: 208.4 kB / 439.7 MB, free: 8.121 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3568, allocations: 4.938 kB / 439.7 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/0.3569, allocations: 3.984 kB / 439.8 MB, free: 8.113 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.3569, allocations: 4 kB / 439.8 MB, free: 8.109 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.3581, allocations: 0.6372 MB / 440.4 MB, free: 7.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000383/0.3585, allocations: 138.4 kB / 440.5 MB, free: 7.289 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/0.3587, allocations: 82.34 kB / 440.6 MB, free: 7.207 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.3588, allocations: 4.188 kB / 440.6 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002305/0.359, allocations: 109.8 kB / 440.7 MB, free: 7.086 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 2.846e-06/0.359, allocations: 0 / 440.7 MB, free: 7.086 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004541/0.3595, allocations: 134.6 kB / 440.9 MB, free: 6.949 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.3595, allocations: 55.41 kB / 440.9 MB, free: 6.883 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.3597, allocations: 133.8 kB / 441 MB, free: 6.742 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.273e-05/0.3597, allocations: 37.7 kB / 441.1 MB, free: 6.699 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.3599, allocations: 194.8 kB / 441.3 MB, free: 6.504 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.354e-05/0.36, allocations: 59.2 kB / 441.3 MB, free: 6.445 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.417e-05/0.36, allocations: 0 / 441.3 MB, free: 6.445 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.3601, allocations: 323.6 kB / 441.6 MB, free: 6.121 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.3603, allocations: 52.66 kB / 441.7 MB, free: 6.066 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.3606, allocations: 123.8 kB / 441.8 MB, free: 5.922 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.3607, allocations: 51.89 kB / 441.9 MB, free: 5.871 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3608, allocations: 0 / 441.9 MB, free: 5.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000499/0.3613, allocations: 205.4 kB / 442.1 MB, free: 5.664 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.3613, allocations: 8 kB / 442.1 MB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3613, allocations: 0 / 442.1 MB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.3613, allocations: 6.25 kB / 442.1 MB, free: 5.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.3616, allocations: 35.91 kB / 442.1 MB, free: 5.617 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.3616, allocations: 12.47 kB / 442.1 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.3618, allocations: 12.16 kB / 442.1 MB, free: 5.594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.789e-05/0.3618, allocations: 12 kB / 442.1 MB, free: 5.582 MB / 330.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 0.0001008/0.3619, allocations: 48.75 kB / 442.2 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.622e-05/0.362, allocations: 15.8 kB / 442.2 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004923/0.3625, allocations: 163.9 kB / 442.4 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3625, allocations: 0 / 442.4 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3625, allocations: 4 kB / 442.4 MB, free: 5.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.3625, allocations: 1.219 kB / 442.4 MB, free: 5.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.3636, allocations: 0.4943 MB / 442.9 MB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.3636, allocations: 0 / 442.9 MB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/0.3638, allocations: 23.92 kB / 442.9 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3638, allocations: 4 kB / 442.9 MB, free: 4.777 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.3638, allocations: 0 / 442.9 MB, free: 4.777 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3638, allocations: 4 kB / 442.9 MB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3638, allocations: 0 / 442.9 MB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004281/0.3643, allocations: 251.6 kB / 443.1 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.13e-05/0.3643, allocations: 92.86 kB / 443.2 MB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.869e-05/0.3644, allocations: 8 kB / 443.2 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.3646, allocations: 7.984 kB / 443.3 MB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.499e-05/0.3647, allocations: 23.91 kB / 443.3 MB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.3648, allocations: 10.59 kB / 443.3 MB, free: 4.355 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.258e-05/0.3648, allocations: 96.27 kB / 443.4 MB, free: 4.262 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003835/0.3652, allocations: 28 kB / 443.4 MB, free: 4.234 MB / 330.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.0001907/0.3654, allocations: 111.2 kB / 443.5 MB, free: 4.117 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004373/0.3659, allocations: 164 kB / 443.7 MB, free: 3.957 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3659, allocations: 448 / 443.7 MB, free: 3.957 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001894/0.3661, allocations: 79.92 kB / 443.8 MB, free: 3.879 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.3664, allocations: 22.16 kB / 443.8 MB, free: 3.863 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007141/0.3671, allocations: 246.2 kB / 444 MB, free: 3.598 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004411/0.3676, allocations: 0.7592 MB / 444.8 MB, free: 2.812 MB / 330.7 MB Notification: Performance of SimCode: time 6.72e-07/0.3676, allocations: 0.9375 kB / 444.8 MB, free: 2.812 MB / 330.7 MB Notification: Performance of Templates: time 0.005813/0.3734, allocations: 2.285 MB / 447.1 MB, free: 0.5547 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches