Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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.0.0_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.0.0_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008796/0.0008797, allocations: 180.4 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 225.7 MB / 243.2 MB, free: 8.531 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007435/0.0007436, allocations: 93.66 kB / 294.4 MB, free: 9.523 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000248/0.000248, allocations: 11.94 kB / 354.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1937/0.194, allocations: 50.41 MB / 404.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001191/0.1952, allocations: 1.204 MB / 405.8 MB, free: 30.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005165/0.1958, allocations: 368.3 kB / 406.1 MB, free: 29.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.941e-05/0.1958, allocations: 4 kB / 406.1 MB, free: 29.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.194e-05/0.1959, allocations: 14 kB / 406.1 MB, free: 29.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.026e-05/0.196, allocations: 11.81 kB / 406.2 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.1962, allocations: 107.9 kB / 406.3 MB, free: 29.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.1964, allocations: 235.5 kB / 406.5 MB, free: 29.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.1966, allocations: 142.3 kB / 406.6 MB, free: 29.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.471e-05/0.1967, allocations: 63.77 kB / 406.7 MB, free: 29.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.307e-05/0.1968, allocations: 83.55 kB / 406.8 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.011e-05/0.1968, allocations: 8.688 kB / 406.8 MB, free: 29.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.89e-05/0.1969, allocations: 12 kB / 406.8 MB, free: 29.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.871e-05/0.1969, allocations: 45.67 kB / 406.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.302e-05/0.197, allocations: 109.2 kB / 406.9 MB, free: 28.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.1971, allocations: 195.3 kB / 407.1 MB, free: 28.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1972, allocations: 3.938 kB / 407.1 MB, free: 28.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1972, allocations: 0 / 407.1 MB, free: 28.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.1972, allocations: 0.9062 kB / 407.1 MB, free: 28.74 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.0004143/0.1976, allocations: 441.8 kB / 407.6 MB, free: 28.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.884e-05/0.1976, allocations: 8.031 kB / 407.6 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.93e-05/0.1977, allocations: 28.66 kB / 407.6 MB, free: 28.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.1978, allocations: 224.1 kB / 407.8 MB, free: 27.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.1979, allocations: 24.88 kB / 407.9 MB, free: 27.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.087e-05/0.1979, allocations: 24.38 kB / 407.9 MB, free: 27.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.1982, allocations: 244 kB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.1982, allocations: 192 / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.95e-05/0.1983, allocations: 11.94 kB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.1983, allocations: 4 kB / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.1985, allocations: 157.7 kB / 408.3 MB, free: 27.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006742/0.1992, allocations: 0.7089 MB / 409 MB, free: 26.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.1994, allocations: 166.8 kB / 409.2 MB, free: 26.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.143e-05/0.1995, allocations: 80.83 kB / 409.2 MB, free: 26.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.1995, allocations: 0 / 409.2 MB, free: 26.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001835/0.1997, allocations: 127.2 kB / 409.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.222e-06/0.1997, allocations: 0 / 409.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003057/0.2001, allocations: 210.6 kB / 409.6 MB, free: 26.13 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.675e-05/0.2001, allocations: 63.27 kB / 409.6 MB, free: 26.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.857e-05/0.2002, allocations: 145.9 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.2002, allocations: 33.7 kB / 409.8 MB, free: 25.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.51e-05/0.2003, allocations: 132.6 kB / 409.9 MB, free: 25.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.122e-05/0.2003, allocations: 63.19 kB / 410 MB, free: 25.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.739e-06/0.2003, allocations: 8 kB / 410 MB, free: 25.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.323e-05/0.2004, allocations: 326.8 kB / 410.3 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.817e-05/0.2004, allocations: 60.62 kB / 410.4 MB, free: 25.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.2006, allocations: 132 kB / 410.5 MB, free: 25.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.2007, allocations: 168.6 kB / 410.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2007, allocations: 0 / 410.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002638/0.201, allocations: 250.5 kB / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.201, allocations: 8 kB / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.201, allocations: 0 / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.201, allocations: 4 kB / 410.9 MB, free: 24.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.2012, allocations: 35.84 kB / 411 MB, free: 24.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.2012, allocations: 11.92 kB / 411 MB, free: 24.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.13e-05/0.2013, allocations: 27.75 kB / 411 MB, free: 24.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.2013, allocations: 12 kB / 411 MB, free: 24.59 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 8.799e-05/0.2014, allocations: 161.9 kB / 411.2 MB, free: 24.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.2014, allocations: 11.84 kB / 411.2 MB, free: 24.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002578/0.2017, allocations: 198.4 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.2017, allocations: 4 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2017, allocations: 0 / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2017, allocations: 0 / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004939/0.2022, allocations: 0.575 MB / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2022, allocations: 0 / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.653e-05/0.2023, allocations: 19.92 kB / 412 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2023, allocations: 0 / 412 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.2023, allocations: 4 kB / 412 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2023, allocations: 4 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2023, allocations: 3.938 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002047/0.2025, allocations: 283.2 kB / 412.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.226e-05/0.2026, allocations: 88.95 kB / 412.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.2026, allocations: 4 kB / 412.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.101e-05/0.2027, allocations: 11.98 kB / 412.4 MB, free: 23.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.058e-05/0.2027, allocations: 23.91 kB / 412.4 MB, free: 23.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.2028, allocations: 12 kB / 412.4 MB, free: 23.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.024e-05/0.2028, allocations: 91.27 kB / 412.5 MB, free: 23 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2028, allocations: 0 / 412.5 MB, free: 23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002343/0.203, allocations: 59.75 kB / 412.5 MB, free: 22.94 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 9.767e-05/0.2031, allocations: 110.5 kB / 412.7 MB, free: 22.83 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002389/0.2034, allocations: 177.7 kB / 412.8 MB, free: 22.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2034, allocations: 7.938 kB / 412.8 MB, free: 22.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.2035, allocations: 83.91 kB / 412.9 MB, free: 22.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.2037, allocations: 20.42 kB / 412.9 MB, free: 22.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004431/0.2042, allocations: 399.2 kB / 413.3 MB, free: 22.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.2043, allocations: 0.7326 MB / 414.1 MB, free: 21.37 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.959e-05/0.2044, allocations: 25.89 kB / 414.1 MB, free: 21.35 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.741e-05/0.2045, allocations: 23.42 kB / 414.1 MB, free: 21.33 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.2045, allocations: 4 kB / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of Templates: time 0.003756/0.2082, allocations: 1.708 MB / 415.8 MB, free: 19.62 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches