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_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 184 kB / 16.72 MB, free: 4.84 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.242/1.242, allocations: 225.7 MB / 243.2 MB, free: 8.504 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.0007131/0.0007131, allocations: 90.02 kB / 294.3 MB, free: 9.535 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002257/0.0002257, allocations: 11.94 kB / 354.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1888, allocations: 50.41 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001377/0.1902, allocations: 1.379 MB / 405.9 MB, free: 29.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005601/0.1908, allocations: 386.4 kB / 406.3 MB, free: 29.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.169e-05/0.1909, allocations: 7.938 kB / 406.3 MB, free: 29.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.191, allocations: 19.86 kB / 406.3 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.506e-05/0.1911, allocations: 11.86 kB / 406.4 MB, free: 29.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.1913, allocations: 103.9 kB / 406.5 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002215/0.1916, allocations: 247.2 kB / 406.7 MB, free: 29.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.1918, allocations: 173 kB / 406.9 MB, free: 29.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.013e-05/0.1919, allocations: 73.45 kB / 406.9 MB, free: 28.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.816e-05/0.192, allocations: 79.55 kB / 407 MB, free: 28.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.192, allocations: 8 kB / 407 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.95e-05/0.1921, allocations: 20 kB / 407 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.228e-05/0.1921, allocations: 39.83 kB / 407.1 MB, free: 28.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.51e-05/0.1922, allocations: 113.9 kB / 407.2 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.1924, allocations: 211.8 kB / 407.4 MB, free: 28.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1924, allocations: 0 / 407.4 MB, free: 28.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1924, allocations: 4.625 kB / 407.4 MB, free: 28.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.1924, allocations: 0 / 407.4 MB, free: 28.47 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.0004482/0.1928, allocations: 458.3 kB / 407.8 MB, free: 27.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.1929, allocations: 8.031 kB / 407.9 MB, free: 27.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.452e-05/0.1929, allocations: 20.75 kB / 407.9 MB, free: 27.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.1931, allocations: 230.2 kB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.1931, allocations: 24.94 kB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.98e-05/0.1932, allocations: 28.38 kB / 408.2 MB, free: 27.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004394/0.1936, allocations: 277.8 kB / 408.4 MB, free: 27.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.1936, allocations: 3.938 kB / 408.4 MB, free: 27.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.1937, allocations: 12 kB / 408.4 MB, free: 27.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.1937, allocations: 4 kB / 408.4 MB, free: 27.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003369/0.1941, allocations: 165.6 kB / 408.6 MB, free: 27.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008768/0.1949, allocations: 0.9748 MB / 409.6 MB, free: 26.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.1952, allocations: 177.4 kB / 409.8 MB, free: 25.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.134e-05/0.1953, allocations: 85.62 kB / 409.8 MB, free: 25.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.1953, allocations: 7.938 kB / 409.8 MB, free: 25.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001859/0.1955, allocations: 134 kB / 410 MB, free: 25.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.282e-06/0.1955, allocations: 0 / 410 MB, free: 25.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003212/0.1958, allocations: 233 kB / 410.2 MB, free: 25.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.777e-05/0.1959, allocations: 85.23 kB / 410.3 MB, free: 25.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.11e-05/0.1959, allocations: 154 kB / 410.4 MB, free: 25.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.196, allocations: 37.69 kB / 410.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.039e-05/0.196, allocations: 140.5 kB / 410.6 MB, free: 25.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.1961, allocations: 63.2 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.518e-06/0.1961, allocations: 4 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.061e-05/0.1961, allocations: 334.8 kB / 411 MB, free: 24.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.252e-05/0.1962, allocations: 59.97 kB / 411.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.1963, allocations: 144.5 kB / 411.2 MB, free: 24.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001784/0.1965, allocations: 186.3 kB / 411.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1965, allocations: 0 / 411.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002788/0.1968, allocations: 258 kB / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.1968, allocations: 4 kB / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1968, allocations: 4 kB / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.1969, allocations: 4 kB / 411.6 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.197, allocations: 35.86 kB / 411.7 MB, free: 23.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.197, allocations: 4 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.432e-05/0.1971, allocations: 27.83 kB / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.1971, allocations: 12.28 kB / 411.7 MB, free: 23.82 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.146e-05/0.1972, allocations: 172 kB / 411.9 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.724e-05/0.1972, allocations: 15.8 kB / 411.9 MB, free: 23.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002563/0.1975, allocations: 194.3 kB / 412.1 MB, free: 23.44 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.1975, allocations: 4 kB / 412.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1975, allocations: 0 / 412.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1975, allocations: 4 kB / 412.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005067/0.198, allocations: 0.5973 MB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1981, allocations: 3.984 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.596e-05/0.1981, allocations: 12 kB / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1981, allocations: 3.938 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.1982, allocations: 8 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.1982, allocations: 7.922 kB / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1982, allocations: 0 / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002116/0.1984, allocations: 294 kB / 413 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.014e-05/0.1984, allocations: 92.89 kB / 413.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.1984, allocations: 8 kB / 413.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.156e-05/0.1985, allocations: 4 kB / 413.1 MB, free: 22.31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.765e-05/0.1986, allocations: 19.97 kB / 413.1 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.1986, allocations: 11.98 kB / 413.2 MB, free: 22.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.36e-05/0.1987, allocations: 111.3 kB / 413.3 MB, free: 22.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1987, allocations: 0 / 413.3 MB, free: 22.17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002518/0.1989, allocations: 55.75 kB / 413.3 MB, free: 22.12 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,step.localActive,transition1.enableFire,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 9.325e-05/0.199, allocations: 112 kB / 413.4 MB, free: 22 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002397/0.1993, allocations: 183.7 kB / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1993, allocations: 4.5 kB / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.1994, allocations: 87.91 kB / 413.7 MB, free: 21.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.1996, allocations: 19.94 kB / 413.7 MB, free: 21.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004439/0.2001, allocations: 421.8 kB / 414.1 MB, free: 21.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.2002, allocations: 0.7326 MB / 414.9 MB, free: 20.52 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.195e-05/0.2003, allocations: 21.94 kB / 414.9 MB, free: 20.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.898e-05/0.2004, allocations: 23.44 kB / 414.9 MB, free: 20.47 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2004, allocations: 4 kB / 414.9 MB, free: 20.47 MB / 298.7 MB Notification: Performance of Templates: time 0.003696/0.2041, allocations: 1.739 MB / 416.7 MB, free: 18.73 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches