Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.002578/0.002578, allocations: 182.9 kB / 8.155 MB, free: 2.18 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.823/1.823, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.001255/0.001254, allocations: 91.17 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.007e-06/9.157e-06, allocations: 0 / 314.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2395, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1236/0.3632, allocations: 74.99 MB / 436.8 MB, free: 11.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.3635, allocations: 67.95 kB / 436.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01157/0.3751, allocations: 2.6 MB / 439.5 MB, free: 8.461 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.975e-05/0.3752, allocations: 4 kB / 439.5 MB, free: 8.457 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006749/0.3759, allocations: 445.4 kB / 439.9 MB, free: 7.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.3759, allocations: 8.031 kB / 439.9 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.11e-05/0.376, allocations: 23.72 kB / 439.9 MB, free: 7.949 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.3764, allocations: 226.7 kB / 440.2 MB, free: 7.688 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/0.3764, allocations: 8 kB / 440.2 MB, free: 7.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.202e-05/0.3765, allocations: 20 kB / 440.2 MB, free: 7.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005103/0.377, allocations: 146.3 kB / 440.3 MB, free: 7.52 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005437/0.3776, allocations: 231.1 kB / 440.6 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.3776, allocations: 0.8438 kB / 440.6 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.13e-05/0.3777, allocations: 4 kB / 440.6 MB, free: 7.273 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.3777, allocations: 4 kB / 440.6 MB, free: 7.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.3792, allocations: 0.9012 MB / 441.5 MB, free: 6.316 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000347/0.3796, allocations: 123.2 kB / 441.6 MB, free: 6.188 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.3797, allocations: 66.83 kB / 441.7 MB, free: 6.121 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.145e-05/0.3798, allocations: 12.09 kB / 441.7 MB, free: 6.109 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002318/0.38, allocations: 110.5 kB / 441.8 MB, free: 5.992 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.236e-06/0.38, allocations: 0 / 441.8 MB, free: 5.992 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004254/0.3805, allocations: 130.5 kB / 441.9 MB, free: 5.859 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.3805, allocations: 63.31 kB / 442 MB, free: 5.785 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.3807, allocations: 136 kB / 442.1 MB, free: 5.648 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.768e-05/0.3808, allocations: 33.69 kB / 442.1 MB, free: 5.609 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.3809, allocations: 202.7 kB / 442.3 MB, free: 5.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.443e-05/0.381, allocations: 67.2 kB / 442.4 MB, free: 5.344 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.439e-05/0.381, allocations: 0 / 442.4 MB, free: 5.344 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3812, allocations: 318.8 kB / 442.7 MB, free: 5.023 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.3813, allocations: 52.66 kB / 442.8 MB, free: 4.969 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002307/0.3816, allocations: 133.5 kB / 442.9 MB, free: 4.809 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001752/0.3818, allocations: 55.97 kB / 442.9 MB, free: 4.754 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3818, allocations: 0 / 442.9 MB, free: 4.754 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005294/0.3823, allocations: 219.9 kB / 443.2 MB, free: 4.535 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3823, allocations: 6.969 kB / 443.2 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3824, allocations: 0 / 443.2 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.3824, allocations: 8 kB / 443.2 MB, free: 4.523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002603/0.3827, allocations: 31.92 kB / 443.2 MB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.3827, allocations: 4 kB / 443.2 MB, free: 4.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.3829, allocations: 22.56 kB / 443.2 MB, free: 4.469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.045e-05/0.3829, allocations: 15.03 kB / 443.2 MB, free: 4.457 MB / 330.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,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.000104/0.383, allocations: 52.19 kB / 443.3 MB, free: 4.398 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.155e-05/0.3831, allocations: 15.81 kB / 443.3 MB, free: 4.383 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004882/0.3836, allocations: 154.3 kB / 443.5 MB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3836, allocations: 4 kB / 443.5 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3836, allocations: 0 / 443.5 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.3836, allocations: 0.625 kB / 443.5 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.3847, allocations: 0.5192 MB / 444 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.3847, allocations: 0 / 444 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.3848, allocations: 19.92 kB / 444 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.3849, allocations: 2.812 kB / 444 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.3849, allocations: 0 / 444 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.3849, allocations: 4 kB / 444 MB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3849, allocations: 4 kB / 444 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004091/0.3853, allocations: 249.6 kB / 444.3 MB, free: 3.367 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.989e-05/0.3854, allocations: 92.86 kB / 444.4 MB, free: 3.258 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.016e-05/0.3855, allocations: 4 kB / 444.4 MB, free: 3.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.3856, allocations: 4 kB / 444.4 MB, free: 3.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.679e-05/0.3857, allocations: 23.89 kB / 444.4 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.3858, allocations: 8 kB / 444.4 MB, free: 3.219 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.36e-05/0.3859, allocations: 95.28 kB / 444.5 MB, free: 3.125 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004081/0.3863, allocations: 36.73 kB / 444.5 MB, free: 3.09 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 (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.0001976/0.3865, allocations: 107 kB / 444.6 MB, free: 2.973 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004386/0.3869, allocations: 160.1 kB / 444.8 MB, free: 2.816 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.387, allocations: 0 / 444.8 MB, free: 2.816 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.3871, allocations: 68.5 kB / 444.8 MB, free: 2.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.3874, allocations: 24.83 kB / 444.9 MB, free: 2.727 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007919/0.3883, allocations: 250.2 kB / 445.1 MB, free: 2.453 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000451/0.3887, allocations: 0.7615 MB / 445.9 MB, free: 1.668 MB / 330.7 MB Notification: Performance of SimCode: time 8.62e-07/0.3887, allocations: 4 kB / 445.9 MB, free: 1.664 MB / 330.7 MB Notification: Performance of Templates: time 0.006463/0.3952, allocations: 2.337 MB / 448.2 MB, free: 15.36 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches