Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001729/0.001729, allocations: 203.2 kB / 8.543 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 225.5 MB / 234.4 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008964/0.0008963, allocations: 93.34 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.34e-06/5.37e-06, allocations: 0 / 343.1 MB, free: 8.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0951/0.09512, allocations: 51.48 MB / 394.6 MB, free: 5.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3022/0.3973, allocations: 76.7 MB / 471.3 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001771/0.3976, allocations: 60.89 kB / 471.4 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.007132/0.4047, allocations: 2.679 MB / 474 MB, free: 13.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.4048, allocations: 4 kB / 474 MB, free: 13.54 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.0005326/0.4053, allocations: 437.5 kB / 474.5 MB, free: 13.11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.4054, allocations: 8.781 kB / 474.5 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.513e-05/0.4054, allocations: 26.97 kB / 474.5 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.4057, allocations: 236 kB / 474.7 MB, free: 12.85 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.4058, allocations: 8 kB / 474.7 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.4058, allocations: 16 kB / 474.8 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002756/0.4061, allocations: 141 kB / 474.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003232/0.4064, allocations: 235.1 kB / 475.1 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.4064, allocations: 3.938 kB / 475.1 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.4065, allocations: 2.906 kB / 475.1 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.4065, allocations: 8 kB / 475.1 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008569/0.4073, allocations: 0.8962 MB / 476 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/0.4076, allocations: 153.8 kB / 476.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.182e-05/0.4077, allocations: 74.66 kB / 476.3 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.4077, allocations: 192 / 476.3 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001552/0.4079, allocations: 130.4 kB / 476.4 MB, free: 11.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.4079, allocations: 0 / 476.4 MB, free: 11.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003182/0.4082, allocations: 142.7 kB / 476.5 MB, free: 11.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.4082, allocations: 81.11 kB / 476.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.213e-05/0.4083, allocations: 141.4 kB / 476.7 MB, free: 11.22 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.4084, allocations: 33.08 kB / 476.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.497e-05/0.4084, allocations: 130.8 kB / 476.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/0.4085, allocations: 64.98 kB / 477 MB, free: 11.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.238e-06/0.4085, allocations: 0 / 477 MB, free: 11.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.488e-05/0.4086, allocations: 324.8 kB / 477.3 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.126e-05/0.4087, allocations: 55.53 kB / 477.3 MB, free: 10.67 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001124/0.4088, allocations: 122.5 kB / 477.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.576e-05/0.4089, allocations: 66.7 kB / 477.5 MB, free: 10.51 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4089, allocations: 3.938 kB / 477.5 MB, free: 10.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002817/0.4092, allocations: 215.7 kB / 477.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.4092, allocations: 4 kB / 477.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.4092, allocations: 4 kB / 477.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.4092, allocations: 7.375 kB / 477.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.4094, allocations: 34.7 kB / 477.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.852e-06/0.4094, allocations: 4 kB / 477.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.799e-05/0.4095, allocations: 16.72 kB / 477.8 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.4095, allocations: 19.38 kB / 477.8 MB, free: 10.27 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,SetBoolean1.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.1e-05/0.4096, allocations: 123.4 kB / 477.9 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.293e-05/0.4097, allocations: 11.81 kB / 478 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002909/0.41, allocations: 156.6 kB / 478.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.41, allocations: 4 kB / 478.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.41, allocations: 0 / 478.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.41, allocations: 9.406 kB / 478.1 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005348/0.4105, allocations: 0.5166 MB / 478.6 MB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4105, allocations: 0 / 478.6 MB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.08e-05/0.4106, allocations: 19.22 kB / 478.7 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.4106, allocations: 4 kB / 478.7 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.4107, allocations: 5.531 kB / 478.7 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.4107, allocations: 0 / 478.7 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.4107, allocations: 4 kB / 478.7 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002315/0.4109, allocations: 264.1 kB / 478.9 MB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.81e-05/0.411, allocations: 100.2 kB / 479 MB, free: 9.211 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/0.411, allocations: 6.188 kB / 479 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.848e-05/0.4111, allocations: 6.562 kB / 479 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.664e-05/0.4112, allocations: 28.5 kB / 479.1 MB, free: 9.188 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.4112, allocations: 7.281 kB / 479.1 MB, free: 9.184 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.587e-05/0.4112, allocations: 100 kB / 479.2 MB, free: 9.094 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002797/0.4115, allocations: 39.28 kB / 479.2 MB, free: 9.059 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,SetBoolean1.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.0001424/0.4117, allocations: 98.5 kB / 479.3 MB, free: 8.953 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002425/0.4119, allocations: 166.2 kB / 479.5 MB, free: 8.832 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.412, allocations: 0 / 479.5 MB, free: 8.832 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.4121, allocations: 85.89 kB / 479.6 MB, free: 8.773 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.4123, allocations: 11.38 kB / 479.6 MB, free: 8.766 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004768/0.4128, allocations: 238 kB / 479.8 MB, free: 8.551 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.413, allocations: 0.7689 MB / 480.6 MB, free: 7.781 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.413, allocations: 0 / 480.6 MB, free: 7.781 MB / 346.7 MB Notification: Performance of Templates: time 0.004615/0.4176, allocations: 1.889 MB / 482.5 MB, free: 6.375 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches