Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002128/0.002128, allocations: 109.7 kB / 17.16 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002567/0.002567, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.544/2.544, allocations: 222.9 MB / 241.8 MB, free: 13.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 46.95 kB / 300.6 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.18, allocations: 49.45 MB / 350.1 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004842/0.1849, allocations: 1.752 MB / 351.8 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.1861, allocations: 307.1 kB / 352.1 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.1863, allocations: 4 kB / 352.1 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001956/0.1866, allocations: 23.73 kB / 352.1 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.555e-05/0.1867, allocations: 11.92 kB / 352.1 MB, free: 2.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005298/0.1872, allocations: 103.9 kB / 352.2 MB, free: 2.398 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004395/0.1877, allocations: 255.4 kB / 352.5 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004267/0.1881, allocations: 175.2 kB / 352.7 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.1883, allocations: 83.7 kB / 352.7 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.1885, allocations: 107.5 kB / 352.9 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.491e-05/0.1885, allocations: 16 kB / 352.9 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.1886, allocations: 16 kB / 352.9 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.847e-05/0.1887, allocations: 59.81 kB / 352.9 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.1889, allocations: 91.53 kB / 353 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002902/0.1892, allocations: 167.9 kB / 353.2 MB, free: 1.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1892, allocations: 0 / 353.2 MB, free: 1.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1892, allocations: 0 / 353.2 MB, free: 1.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1893, allocations: 0 / 353.2 MB, free: 1.438 MB / 286.1 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.001014/0.1903, allocations: 0.4908 MB / 353.7 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.1903, allocations: 8.031 kB / 353.7 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.484e-05/0.1904, allocations: 24.66 kB / 353.7 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003342/0.1908, allocations: 236 kB / 353.9 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.151e-05/0.1908, allocations: 24.94 kB / 354 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.429e-05/0.1909, allocations: 28.38 kB / 354 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006389/0.1916, allocations: 278.6 kB / 354.3 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1916, allocations: 4.125 kB / 354.3 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.416e-05/0.1916, allocations: 11.94 kB / 354.3 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.744e-05/0.1917, allocations: 8 kB / 354.3 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004248/0.1921, allocations: 165.6 kB / 354.5 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.1938, allocations: 0.9711 MB / 355.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004351/0.1943, allocations: 177.4 kB / 355.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001856/0.1945, allocations: 77.64 kB / 355.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.117e-05/0.1945, allocations: 7.984 kB / 355.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004674/0.195, allocations: 145 kB / 355.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.867e-06/0.195, allocations: 3.938 kB / 355.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008382/0.1959, allocations: 222.7 kB / 356 MB, free: 14.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.196, allocations: 85.05 kB / 356.1 MB, free: 14.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/0.1962, allocations: 165 kB / 356.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.351e-05/0.1963, allocations: 33.7 kB / 356.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.1965, allocations: 140.7 kB / 356.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.069e-05/0.1966, allocations: 67.19 kB / 356.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.1968, allocations: 77.67 kB / 356.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.197, allocations: 326.8 kB / 356.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.1972, allocations: 67.97 kB / 357 MB, free: 13.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003276/0.1976, allocations: 140.5 kB / 357.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005069/0.1981, allocations: 189 kB / 357.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/0.1981, allocations: 4 kB / 357.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007899/0.1989, allocations: 253.2 kB / 357.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.12e-05/0.199, allocations: 8.281 kB / 357.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.199, allocations: 4 kB / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.853e-05/0.199, allocations: 4 kB / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002685/0.1993, allocations: 31.92 kB / 357.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.902e-05/0.1993, allocations: 7.984 kB / 357.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002059/0.1996, allocations: 31.69 kB / 357.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.755e-05/0.1996, allocations: 12 kB / 357.7 MB, free: 12.63 MB / 302.1 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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.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 0.0003013/0.2, allocations: 165.6 kB / 357.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.298e-05/0.2, allocations: 15.81 kB / 357.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006433/0.2007, allocations: 186.4 kB / 358 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.2007, allocations: 7.938 kB / 358 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.2007, allocations: 0 / 358 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.2008, allocations: 7.969 kB / 358 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00144/0.2022, allocations: 0.5986 MB / 358.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.237e-06/0.2022, allocations: 0 / 358.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.2024, allocations: 23.92 kB / 358.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.4e-05/0.2024, allocations: 7.938 kB / 358.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/0.2025, allocations: 4 kB / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2025, allocations: 0 / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2025, allocations: 4 kB / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005971/0.2031, allocations: 280.5 kB / 358.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.497e-05/0.2032, allocations: 92.95 kB / 359 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.2e-05/0.2033, allocations: 15.88 kB / 359.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.2035, allocations: 11.98 kB / 359.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.2036, allocations: 23.97 kB / 359.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.89e-05/0.2036, allocations: 4 kB / 359.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001085/0.2038, allocations: 95.27 kB / 359.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.2038, allocations: 0 / 359.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005897/0.2044, allocations: 51.84 kB / 359.2 MB, free: 10.94 MB / 302.1 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 0.0002622/0.2047, allocations: 119.2 kB / 359.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006621/0.2053, allocations: 191.6 kB / 359.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.2054, allocations: 0 / 359.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002807/0.2057, allocations: 79.91 kB / 359.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005351/0.2062, allocations: 27.92 kB / 359.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.2077, allocations: 448.5 kB / 360.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007214/0.2084, allocations: 0.7365 MB / 360.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.2086, allocations: 23.44 kB / 360.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of SimCode: time 1.693e-06/0.2086, allocations: 0 / 360.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of Templates: time 0.009364/0.218, allocations: 2.424 MB / 363.3 MB, free: 6.848 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches