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_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008314/0.0008315, allocations: 183.2 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.219/1.219, allocations: 225.7 MB / 243.2 MB, free: 10.24 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.0006885/0.0006885, allocations: 87.64 kB / 294.4 MB, free: 9.746 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002577/0.0002577, allocations: 8 kB / 354.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2013, allocations: 50.41 MB / 404.6 MB, free: 31.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001323/0.2027, allocations: 1.402 MB / 406 MB, free: 29.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005843/0.2033, allocations: 392.2 kB / 406.3 MB, free: 29.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.2034, allocations: 6.062 kB / 406.4 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.985e-05/0.2035, allocations: 11.88 kB / 406.4 MB, free: 29.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.296e-05/0.2036, allocations: 19.86 kB / 406.4 MB, free: 29.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003044/0.2039, allocations: 99.89 kB / 406.5 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000214/0.2041, allocations: 251.2 kB / 406.7 MB, free: 29.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.2044, allocations: 155 kB / 406.9 MB, free: 29.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.408e-05/0.2044, allocations: 72.55 kB / 407 MB, free: 28.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.1e-05/0.2045, allocations: 83.55 kB / 407 MB, free: 28.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.251e-05/0.2046, allocations: 10.16 kB / 407 MB, free: 28.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.812e-05/0.2046, allocations: 27.86 kB / 407.1 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.207e-05/0.2047, allocations: 39.84 kB / 407.1 MB, free: 28.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.05e-05/0.2047, allocations: 109.2 kB / 407.2 MB, free: 28.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.2049, allocations: 203.2 kB / 407.4 MB, free: 28.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2049, allocations: 0 / 407.4 MB, free: 28.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2049, allocations: 1.281 kB / 407.4 MB, free: 28.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.205, allocations: 0 / 407.4 MB, free: 28.49 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0004589/0.2054, allocations: 453.6 kB / 407.9 MB, free: 28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.2055, allocations: 8.031 kB / 407.9 MB, free: 27.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.041e-05/0.2055, allocations: 28.59 kB / 407.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001698/0.2057, allocations: 236 kB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.2057, allocations: 24.94 kB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.101e-05/0.2058, allocations: 28.38 kB / 408.2 MB, free: 27.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/0.2061, allocations: 274.6 kB / 408.4 MB, free: 27.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.2061, allocations: 192 / 408.4 MB, free: 27.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.2062, allocations: 11.92 kB / 408.5 MB, free: 27.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.862e-06/0.2062, allocations: 11.94 kB / 408.5 MB, free: 27.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002333/0.2064, allocations: 161.6 kB / 408.6 MB, free: 27.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007978/0.2072, allocations: 0.9748 MB / 409.6 MB, free: 26.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.2074, allocations: 169.4 kB / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.75e-05/0.2075, allocations: 81.72 kB / 409.8 MB, free: 25.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.2075, allocations: 4 kB / 409.8 MB, free: 25.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/0.2077, allocations: 146 kB / 410 MB, free: 25.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.232e-06/0.2077, allocations: 0 / 410 MB, free: 25.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003255/0.2081, allocations: 218.8 kB / 410.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.471e-05/0.2081, allocations: 85.11 kB / 410.3 MB, free: 25.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.312e-05/0.2082, allocations: 153.5 kB / 410.4 MB, free: 25.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.2082, allocations: 37.7 kB / 410.5 MB, free: 25.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.274e-05/0.2083, allocations: 148.5 kB / 410.6 MB, free: 25.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.204e-05/0.2083, allocations: 55.34 kB / 410.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.948e-06/0.2083, allocations: 8 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.247e-05/0.2084, allocations: 326.8 kB / 411 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.112e-05/0.2085, allocations: 59.97 kB / 411.1 MB, free: 24.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.2086, allocations: 136.5 kB / 411.2 MB, free: 24.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001817/0.2088, allocations: 194.3 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2088, allocations: 3.938 kB / 411.4 MB, free: 24.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002845/0.2091, allocations: 246 kB / 411.6 MB, free: 23.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.2091, allocations: 16.22 kB / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2091, allocations: 0 / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.2091, allocations: 4 kB / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.2093, allocations: 39.91 kB / 411.7 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.2093, allocations: 4 kB / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.044e-05/0.2094, allocations: 27.69 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.2094, allocations: 16 kB / 411.7 MB, free: 23.84 MB / 298.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,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,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,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 (41): * Single equations (assignments): 41 * 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 9.188e-05/0.2095, allocations: 161.1 kB / 411.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.755e-05/0.2095, allocations: 19.81 kB / 411.9 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002517/0.2098, allocations: 198.3 kB / 412.1 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.2098, allocations: 4 kB / 412.1 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.2098, allocations: 0 / 412.1 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2098, allocations: 0 / 412.1 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004991/0.2103, allocations: 0.5895 MB / 412.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2103, allocations: 4 kB / 412.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.483e-05/0.2104, allocations: 19.92 kB / 412.7 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.2104, allocations: 7.938 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.2104, allocations: 4 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.2104, allocations: 7.984 kB / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2104, allocations: 0 / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002073/0.2106, allocations: 280.1 kB / 413 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.012e-05/0.2107, allocations: 92.95 kB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.2107, allocations: 15.92 kB / 413.1 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-05/0.2108, allocations: 4 kB / 413.1 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.764e-05/0.2109, allocations: 27.89 kB / 413.2 MB, free: 22.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.2109, allocations: 8 kB / 413.2 MB, free: 22.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.136e-05/0.2109, allocations: 99.27 kB / 413.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2109, allocations: 0 / 413.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002455/0.2112, allocations: 47.84 kB / 413.3 MB, free: 22.16 MB / 298.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,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * 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 (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.000108/0.2113, allocations: 119.2 kB / 413.4 MB, free: 22.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002388/0.2115, allocations: 189.4 kB / 413.6 MB, free: 21.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2115, allocations: 0 / 413.6 MB, free: 21.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.893e-05/0.2116, allocations: 83.89 kB / 413.7 MB, free: 21.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000239/0.2119, allocations: 31.86 kB / 413.7 MB, free: 21.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005629/0.2125, allocations: 420.3 kB / 414.1 MB, free: 21.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.2126, allocations: 0.7404 MB / 414.9 MB, free: 20.53 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.953e-05/0.2127, allocations: 25.95 kB / 414.9 MB, free: 20.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.048e-05/0.2128, allocations: 27.36 kB / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.2128, allocations: 0 / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of Templates: time 0.003865/0.2167, allocations: 1.73 MB / 416.6 MB, free: 18.75 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches