Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002155/0.002154, allocations: 106.3 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.002248/0.002248, 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.454/2.454, allocations: 222.9 MB / 241.8 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.009861/0.009861, allocations: 48.14 kB / 300.6 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1903, allocations: 49.44 MB / 350 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.005908/0.1963, allocations: 1.795 MB / 351.8 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.1976, allocations: 303.1 kB / 352.1 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00015/0.1977, allocations: 4 kB / 352.1 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001911/0.198, allocations: 19.8 kB / 352.2 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.947e-05/0.1981, allocations: 3.938 kB / 352.2 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005454/0.1987, allocations: 107.8 kB / 352.3 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005725/0.1993, allocations: 259.5 kB / 352.5 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005205/0.1998, allocations: 165.9 kB / 352.7 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.2, allocations: 79.7 kB / 352.8 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.2002, allocations: 99.53 kB / 352.9 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.556e-05/0.2002, allocations: 16 kB / 352.9 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.2004, allocations: 23.98 kB / 352.9 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.2005, allocations: 43.84 kB / 352.9 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.2007, allocations: 99.45 kB / 353 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003777/0.2011, allocations: 167.7 kB / 353.2 MB, free: 1.477 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2011, allocations: 0 / 353.2 MB, free: 1.477 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2011, allocations: 0 / 353.2 MB, free: 1.477 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.2012, allocations: 4 kB / 353.2 MB, free: 1.473 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.001208/0.2024, allocations: 495 kB / 353.7 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.2025, allocations: 8.031 kB / 353.7 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.2026, allocations: 28.64 kB / 353.7 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/0.203, allocations: 224.1 kB / 353.9 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.915e-05/0.2031, allocations: 20.94 kB / 354 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.116e-05/0.2032, allocations: 36.34 kB / 354 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008257/0.204, allocations: 274.5 kB / 354.3 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.2041, allocations: 192 / 354.3 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.649e-05/0.2041, allocations: 15.94 kB / 354.3 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.2042, allocations: 4 kB / 354.3 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000746/0.2049, allocations: 165.6 kB / 354.4 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002301/0.2072, allocations: 0.975 MB / 355.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005517/0.2078, allocations: 177.3 kB / 355.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002975/0.2081, allocations: 89.67 kB / 355.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.718e-05/0.2082, allocations: 11.94 kB / 355.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005107/0.2087, allocations: 137 kB / 355.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 6.001e-06/0.2087, allocations: 0 / 355.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008625/0.2096, allocations: 234.5 kB / 356.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.685e-05/0.2097, allocations: 85.09 kB / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.21, allocations: 156.1 kB / 356.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.75e-05/0.2101, allocations: 41.7 kB / 356.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.2102, allocations: 136.5 kB / 356.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.03e-05/0.2103, allocations: 67.17 kB / 356.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002378/0.2106, allocations: 77.69 kB / 356.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.2108, allocations: 326.8 kB / 356.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002768/0.2111, allocations: 67.95 kB / 357 MB, free: 13.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003046/0.2114, allocations: 140.5 kB / 357.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000525/0.212, allocations: 193 kB / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.212, allocations: 0 / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007814/0.2128, allocations: 249.4 kB / 357.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/0.2129, allocations: 11.98 kB / 357.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.2129, allocations: 4 kB / 357.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.862e-05/0.2129, allocations: 4 kB / 357.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002774/0.2132, allocations: 35.86 kB / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.925e-05/0.2132, allocations: 4 kB / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.2135, allocations: 23.75 kB / 357.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.927e-05/0.2136, allocations: 19.98 kB / 357.7 MB, free: 12.67 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.0003814/0.214, allocations: 157.8 kB / 357.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.626e-05/0.2141, allocations: 11.91 kB / 357.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007142/0.2148, allocations: 198.2 kB / 358 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.2148, allocations: 7.938 kB / 358 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.2148, allocations: 0 / 358 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.2149, allocations: 0 / 358 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001439/0.2163, allocations: 0.5947 MB / 358.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.2163, allocations: 0 / 358.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.2165, allocations: 15.98 kB / 358.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.383e-06/0.2165, allocations: 3.938 kB / 358.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/0.2165, allocations: 7.984 kB / 358.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.2165, allocations: 4 kB / 358.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2165, allocations: 3.938 kB / 358.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006915/0.2172, allocations: 292.6 kB / 358.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.2174, allocations: 96.84 kB / 359 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.528e-05/0.2174, allocations: 11.94 kB / 359 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.2176, allocations: 3.938 kB / 359.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.2177, allocations: 23.97 kB / 359.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.242e-05/0.2178, allocations: 4 kB / 359.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001403/0.2179, allocations: 99.27 kB / 359.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.218, allocations: 0 / 359.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008678/0.2188, allocations: 55.83 kB / 359.2 MB, free: 10.98 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,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.0002591/0.2191, allocations: 115.1 kB / 359.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006974/0.2198, allocations: 183.7 kB / 359.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2198, allocations: 4 kB / 359.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002148/0.2201, allocations: 83.84 kB / 359.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008528/0.2209, allocations: 31.14 kB / 359.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.2222, allocations: 436.1 kB / 360.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005615/0.2228, allocations: 0.7365 MB / 360.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.2229, allocations: 27.44 kB / 360.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of SimCode: time 1.242e-06/0.2229, allocations: 0 / 360.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of Templates: time 0.00834/0.2313, allocations: 2.406 MB / 363.2 MB, free: 6.914 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches