Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 107.9 kB / 18.4 MB, free: 4.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 190.5 kB / 19.33 MB, free: 3.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 47.92 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08051/0.08183, allocations: 46.61 MB / 375.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00296/0.08483, allocations: 1.696 MB / 377.5 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006858/0.08555, allocations: 259.2 kB / 377.7 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.08568, allocations: 3.938 kB / 377.7 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.08583, allocations: 23.73 kB / 377.8 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.445e-05/0.08591, allocations: 27.73 kB / 377.8 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.08632, allocations: 115.8 kB / 377.9 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000334/0.08667, allocations: 267.5 kB / 378.2 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003088/0.08698, allocations: 185.5 kB / 378.3 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.0871, allocations: 87.7 kB / 378.4 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.08724, allocations: 99.53 kB / 378.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.08729, allocations: 24 kB / 378.5 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.865e-05/0.08739, allocations: 31.94 kB / 378.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.486e-05/0.08746, allocations: 59.81 kB / 378.6 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.08758, allocations: 103.5 kB / 378.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002979/0.08789, allocations: 255 kB / 379 MB, free: 1.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.0879, allocations: 4 kB / 379 MB, free: 1.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.08791, allocations: 0 / 379 MB, free: 1.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.08792, allocations: 0 / 379 MB, free: 1.379 MB / 318.1 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.0006265/0.08856, allocations: 490.1 kB / 379.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.0886, allocations: 15.89 kB / 379.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.77e-05/0.08868, allocations: 20.75 kB / 379.5 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003138/0.089, allocations: 236 kB / 379.7 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.858e-05/0.08905, allocations: 20.94 kB / 379.8 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.08909, allocations: 28.38 kB / 379.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004519/0.08955, allocations: 266.6 kB / 380 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.08958, allocations: 8.125 kB / 380 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.879e-05/0.08962, allocations: 15.92 kB / 380.1 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.08964, allocations: 8 kB / 380.1 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003047/0.08994, allocations: 161.6 kB / 380.2 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1994/0.2893, allocations: 0.9495 MB / 381.2 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/0.2897, allocations: 159.5 kB / 381.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.2899, allocations: 72.11 kB / 381.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.2899, allocations: 14.59 kB / 381.4 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002215/0.2901, allocations: 122.4 kB / 381.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.707e-06/0.2902, allocations: 0.8125 kB / 381.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004523/0.2906, allocations: 210.3 kB / 381.7 MB, free: 12.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.2907, allocations: 57.08 kB / 381.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.2908, allocations: 151.5 kB / 382 MB, free: 12.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.2908, allocations: 39.3 kB / 382 MB, free: 12.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.951e-05/0.2909, allocations: 141 kB / 382.1 MB, free: 12.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.42e-05/0.291, allocations: 59.22 kB / 382.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.2912, allocations: 82.3 kB / 382.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.952e-05/0.2913, allocations: 322.3 kB / 382.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.2914, allocations: 63.36 kB / 382.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.2916, allocations: 147.1 kB / 382.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.2918, allocations: 188.8 kB / 383 MB, free: 11.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.2918, allocations: 4.562 kB / 383 MB, free: 11.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004451/0.2923, allocations: 250.6 kB / 383.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.2923, allocations: 5.938 kB / 383.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.2923, allocations: 3.406 kB / 383.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.2924, allocations: 4.125 kB / 383.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.2925, allocations: 35.84 kB / 383.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.2925, allocations: 11.33 kB / 383.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.2927, allocations: 27.92 kB / 383.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/0.2927, allocations: 14.28 kB / 383.3 MB, free: 11.68 MB / 318.1 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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001506/0.2929, allocations: 161.2 kB / 383.5 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.225e-05/0.2929, allocations: 14.25 kB / 383.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004242/0.2933, allocations: 195 kB / 383.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.2934, allocations: 2.5 kB / 383.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.2934, allocations: 8.094 kB / 383.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.2934, allocations: 1.594 kB / 383.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007617/0.2942, allocations: 0.5849 MB / 384.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.2942, allocations: 1.219 kB / 384.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.749e-05/0.2943, allocations: 13.12 kB / 384.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2943, allocations: 1.188 kB / 384.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.2943, allocations: 11.28 kB / 384.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.2943, allocations: 5.062 kB / 384.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2943, allocations: 288 / 384.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000292/0.2946, allocations: 277.6 kB / 384.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.601e-05/0.2946, allocations: 90.61 kB / 384.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.2947, allocations: 6.281 kB / 384.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.484e-05/0.2948, allocations: 13.34 kB / 384.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.463e-05/0.2949, allocations: 16.28 kB / 384.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.2949, allocations: 11.09 kB / 384.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.293e-05/0.2949, allocations: 99.75 kB / 384.8 MB, free: 10.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2949, allocations: 4.688 kB / 384.8 MB, free: 10.6 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003673/0.2953, allocations: 54.72 kB / 384.9 MB, free: 10.58 MB / 318.1 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.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001728/0.2955, allocations: 111.1 kB / 385 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003384/0.2958, allocations: 189.3 kB / 385.2 MB, free: 10.42 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2959, allocations: 0 / 385.2 MB, free: 10.42 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.296, allocations: 75.88 kB / 385.2 MB, free: 10.4 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/0.2963, allocations: 31.98 kB / 385.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005848/0.2969, allocations: 352 kB / 385.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.2971, allocations: 0.731 MB / 386.3 MB, free: 9.441 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.561e-05/0.2971, allocations: 29.91 kB / 386.4 MB, free: 9.426 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2971, allocations: 3.938 kB / 386.4 MB, free: 9.422 MB / 318.1 MB Notification: Performance of Templates: time 0.006329/0.3035, allocations: 2.433 MB / 388.8 MB, free: 9.164 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches