Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001633/0.001633, allocations: 197.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008164/0.0008165, allocations: 97.5 kB / 299.8 MB, free: 5.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002761/0.0002762, allocations: 8 kB / 360.6 MB, free: 8.152 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.27, allocations: 51.41 MB / 412 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001391/0.2715, allocations: 1.209 MB / 413.2 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006646/0.2721, allocations: 376.2 kB / 413.6 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.228e-05/0.2722, allocations: 7.938 kB / 413.6 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.2724, allocations: 15.86 kB / 413.6 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.467e-05/0.2724, allocations: 13.11 kB / 413.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003344/0.2728, allocations: 99.91 kB / 413.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002333/0.273, allocations: 238.5 kB / 414 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002259/0.2732, allocations: 153.8 kB / 414.1 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.708e-05/0.2733, allocations: 59.78 kB / 414.2 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.2734, allocations: 83.53 kB / 414.3 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.2735, allocations: 12 kB / 414.3 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.718e-05/0.2735, allocations: 16 kB / 414.3 MB, free: 23.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.623e-05/0.2736, allocations: 39.89 kB / 414.3 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.52e-05/0.2737, allocations: 101.2 kB / 414.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001946/0.2739, allocations: 195.3 kB / 414.6 MB, free: 23.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2739, allocations: 2.406 kB / 414.6 MB, free: 23.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.2739, allocations: 4 kB / 414.6 MB, free: 23.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.513e-06/0.2739, allocations: 3.938 kB / 414.6 MB, free: 23.21 MB / 298.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.00055/0.2745, allocations: 444.2 kB / 415.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2745, allocations: 8.031 kB / 415.1 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.886e-05/0.2746, allocations: 24.66 kB / 415.1 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.2748, allocations: 228.1 kB / 415.3 MB, free: 22.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.379e-05/0.2748, allocations: 20.94 kB / 415.3 MB, free: 22.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.336e-05/0.2749, allocations: 28.38 kB / 415.4 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003455/0.2752, allocations: 240 kB / 415.6 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.2752, allocations: 4.125 kB / 415.6 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.2753, allocations: 7.938 kB / 415.6 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.2753, allocations: 12 kB / 415.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002369/0.2755, allocations: 157.7 kB / 415.8 MB, free: 21.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007496/0.2763, allocations: 0.7089 MB / 416.5 MB, free: 21.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002474/0.2765, allocations: 162.8 kB / 416.7 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.343e-05/0.2766, allocations: 76.83 kB / 416.7 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.2767, allocations: 4 kB / 416.7 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001915/0.2769, allocations: 129.2 kB / 416.9 MB, free: 20.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.2769, allocations: 0 / 416.9 MB, free: 20.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003573/0.2772, allocations: 209.3 kB / 417.1 MB, free: 20.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.2773, allocations: 63.39 kB / 417.1 MB, free: 20.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.895e-05/0.2774, allocations: 141.9 kB / 417.3 MB, free: 20.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.2774, allocations: 41.69 kB / 417.3 MB, free: 20.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.685e-05/0.2774, allocations: 128.6 kB / 417.4 MB, free: 20.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.43e-05/0.2775, allocations: 63.19 kB / 417.5 MB, free: 20.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.038e-05/0.2775, allocations: 12 kB / 417.5 MB, free: 20.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.924e-05/0.2776, allocations: 326.8 kB / 417.8 MB, free: 19.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.211e-05/0.2777, allocations: 60.62 kB / 417.9 MB, free: 19.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.2778, allocations: 128 kB / 418 MB, free: 19.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001895/0.278, allocations: 174 kB / 418.2 MB, free: 19.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.278, allocations: 0 / 418.2 MB, free: 19.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002801/0.2783, allocations: 245.2 kB / 418.4 MB, free: 19.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.2783, allocations: 4 kB / 418.4 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2783, allocations: 7.938 kB / 418.4 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.2783, allocations: 4 kB / 418.4 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.2785, allocations: 27.92 kB / 418.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.2785, allocations: 3.938 kB / 418.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.002e-05/0.2786, allocations: 35.95 kB / 418.5 MB, free: 19.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.2786, allocations: 12 kB / 418.5 MB, free: 19.07 MB / 298.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,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,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 () * 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.0001059/0.2787, allocations: 157.8 kB / 418.7 MB, free: 18.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.848e-05/0.2788, allocations: 15.84 kB / 418.7 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002859/0.2791, allocations: 197 kB / 418.9 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2791, allocations: 0 / 418.9 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2791, allocations: 0 / 418.9 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.2791, allocations: 3.984 kB / 418.9 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005356/0.2796, allocations: 0.5644 MB / 419.4 MB, free: 18.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-06/0.2797, allocations: 0 / 419.4 MB, free: 18.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.833e-05/0.2797, allocations: 19.92 kB / 419.5 MB, free: 18.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.2797, allocations: 4 kB / 419.5 MB, free: 18.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.2798, allocations: 4 kB / 419.5 MB, free: 18.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.2798, allocations: 0 / 419.5 MB, free: 18.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2798, allocations: 11.92 kB / 419.5 MB, free: 18.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002186/0.28, allocations: 278.1 kB / 419.7 MB, free: 17.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.466e-05/0.28, allocations: 96.88 kB / 419.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.2801, allocations: 4 kB / 419.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.923e-05/0.2801, allocations: 4 kB / 419.8 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.768e-05/0.2802, allocations: 27.91 kB / 419.9 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.2802, allocations: 8 kB / 419.9 MB, free: 17.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.703e-05/0.2803, allocations: 103.8 kB / 420 MB, free: 17.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2803, allocations: 0 / 420 MB, free: 17.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002453/0.2805, allocations: 55.73 kB / 420 MB, free: 17.42 MB / 298.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.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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 (26): * Single equations (assignments): 22 * 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.0001297/0.2807, allocations: 111.2 kB / 420.1 MB, free: 17.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002651/0.2809, allocations: 186.9 kB / 420.3 MB, free: 17.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.281, allocations: 0 / 420.3 MB, free: 17.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.2811, allocations: 88.27 kB / 420.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.2813, allocations: 31.92 kB / 420.4 MB, free: 17.01 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004821/0.2818, allocations: 398 kB / 420.8 MB, free: 16.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001367/0.282, allocations: 0.7285 MB / 421.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.737e-05/0.282, allocations: 33.94 kB / 421.6 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.761e-05/0.2821, allocations: 19.44 kB / 421.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of SimCode: time 3.7e-07/0.2821, allocations: 0 / 421.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of Templates: time 0.004007/0.2861, allocations: 1.721 MB / 423.3 MB, free: 14.07 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches