Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00131/0.00131, allocations: 118.7 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.409/1.409, allocations: 227.7 MB / 247.9 MB, free: 10.14 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 71.88 kB / 359.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2631, allocations: 50.54 MB / 410.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002723/0.2659, allocations: 1.49 MB / 411.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006585/0.2665, allocations: 279.2 kB / 411.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.146e-05/0.2666, allocations: 4 kB / 411.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.2667, allocations: 19.73 kB / 412 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.883e-05/0.2668, allocations: 27.73 kB / 412 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003629/0.2671, allocations: 111.8 kB / 412.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003149/0.2675, allocations: 259.6 kB / 412.4 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002656/0.2677, allocations: 149.8 kB / 412.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.721e-05/0.2678, allocations: 79.78 kB / 412.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.268, allocations: 99.53 kB / 412.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.507e-05/0.268, allocations: 24 kB / 412.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.865e-05/0.2681, allocations: 35.98 kB / 412.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.823e-05/0.2681, allocations: 47.89 kB / 412.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.2682, allocations: 103.5 kB / 412.9 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000303/0.2685, allocations: 238.9 kB / 413.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2685, allocations: 0 / 413.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2685, allocations: 0 / 413.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.2685, allocations: 0 / 413.1 MB, free: 14.48 MB / 334.1 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.0006657/0.2692, allocations: 494.2 kB / 413.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2692, allocations: 16.03 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000258/0.2695, allocations: 36.81 kB / 413.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/0.2698, allocations: 224.1 kB / 413.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.2698, allocations: 16.94 kB / 413.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.544e-05/0.2699, allocations: 32.31 kB / 413.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004141/0.2703, allocations: 236 kB / 414.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2703, allocations: 4.125 kB / 414.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.855e-05/0.2703, allocations: 15.94 kB / 414.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.2704, allocations: 8 kB / 414.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003025/0.2707, allocations: 153.7 kB / 414.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.2717, allocations: 0.6859 MB / 415 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000309/0.272, allocations: 162.7 kB / 415.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.2721, allocations: 68.83 kB / 415.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.2721, allocations: 4 kB / 415.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002046/0.2723, allocations: 123.2 kB / 415.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.763e-06/0.2723, allocations: 0 / 415.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004419/0.2728, allocations: 217.9 kB / 415.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.2728, allocations: 55.41 kB / 415.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.273, allocations: 150 kB / 415.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/0.273, allocations: 37.7 kB / 415.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.231e-05/0.2731, allocations: 124.9 kB / 415.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.703e-05/0.2732, allocations: 71.47 kB / 416 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.887e-05/0.2733, allocations: 74 kB / 416.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.2734, allocations: 326.8 kB / 416.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.2736, allocations: 60.62 kB / 416.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.2737, allocations: 136 kB / 416.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002479/0.274, allocations: 175.2 kB / 416.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.274, allocations: 3.938 kB / 416.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003636/0.2743, allocations: 233.3 kB / 417 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.2743, allocations: 11.98 kB / 417 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.2744, allocations: 0 / 417 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.2744, allocations: 8.219 kB / 417 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.2745, allocations: 31.92 kB / 417 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.2745, allocations: 11.88 kB / 417.1 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.707e-05/0.2746, allocations: 27.78 kB / 417.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.2746, allocations: 12 kB / 417.1 MB, free: 10.22 MB / 334.1 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,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001468/0.2748, allocations: 149.8 kB / 417.2 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.2748, allocations: 15.89 kB / 417.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.252e-05/0.2749, allocations: 20.83 kB / 417.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2749, allocations: 8 kB / 417.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2749, allocations: 0 / 417.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.2749, allocations: 3.984 kB / 417.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007011/0.2756, allocations: 0.5452 MB / 417.8 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2756, allocations: 0 / 417.8 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.402e-05/0.2757, allocations: 16 kB / 417.8 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2757, allocations: 0 / 417.8 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.2757, allocations: 4 kB / 417.9 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.2757, allocations: 3.984 kB / 417.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2757, allocations: 7.938 kB / 417.9 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003043/0.276, allocations: 267.9 kB / 418.1 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.128e-05/0.276, allocations: 89 kB / 418.2 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.2761, allocations: 8 kB / 418.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.595e-05/0.2762, allocations: 7.984 kB / 418.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.532e-05/0.2762, allocations: 23.97 kB / 418.3 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.2762, allocations: 7.938 kB / 418.3 MB, free: 8.953 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.727e-05/0.2763, allocations: 103.3 kB / 418.4 MB, free: 8.852 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2763, allocations: 0 / 418.4 MB, free: 8.852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002829/0.2766, allocations: 51.84 kB / 418.4 MB, free: 8.801 MB / 334.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (24): * Single equations (assignments): 20 * 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.0001204/0.2767, allocations: 103.2 kB / 418.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003167/0.277, allocations: 168.1 kB / 418.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.277, allocations: 0 / 418.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.2772, allocations: 75.19 kB / 418.7 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.2774, allocations: 26.94 kB / 418.8 MB, free: 8.434 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000603/0.278, allocations: 323.3 kB / 419.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.2784, allocations: 0.7284 MB / 419.8 MB, free: 7.324 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.137e-05/0.2785, allocations: 21.95 kB / 419.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.331e-05/0.2785, allocations: 19.44 kB / 419.9 MB, free: 7.285 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2785, allocations: 0 / 419.9 MB, free: 7.285 MB / 334.1 MB Notification: Performance of Templates: time 0.004834/0.2834, allocations: 1.682 MB / 421.5 MB, free: 5.613 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches