Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001916/0.001916, allocations: 103.5 kB / 20.97 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001908/0.001908, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.678/1.678, allocations: 177 MB / 204.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.225e-06/2.225e-06, allocations: 0 / 272.2 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.709e-05/3.932e-05, allocations: 2.312 kB / 272.2 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.005597/0.005636, allocations: 1.501 MB / 273.7 MB, free: 356 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.006941, allocations: 283.2 kB / 273.9 MB, free: 72 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.007106, allocations: 7.938 kB / 273.9 MB, free: 64 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002134/0.007319, allocations: 23.73 kB / 274 MB, free: 40 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.007428, allocations: 15.81 kB / 274 MB, free: 24 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007788/0.008207, allocations: 127.7 kB / 274.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006713/0.008878, allocations: 263.5 kB / 274.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004912/0.00937, allocations: 142.8 kB / 274.5 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003708/0.00974, allocations: 131.8 kB / 274.6 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002658/0.01001, allocations: 67.77 kB / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.851e-05/0.01009, allocations: 24 kB / 274.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.01022, allocations: 27.98 kB / 274.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.01034, allocations: 59.83 kB / 274.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.01052, allocations: 63.81 kB / 274.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006665/0.01119, allocations: 251.1 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.0112, allocations: 4 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.0112, allocations: 0 / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.49e-05/0.01121, allocations: 0 / 275.1 MB, free: 14.88 MB / 266.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.001375/0.01259, allocations: 0.5147 MB / 275.6 MB, free: 14.33 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/0.01265, allocations: 15.98 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004506/0.0131, allocations: 40.83 kB / 275.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004865/0.01359, allocations: 172.3 kB / 275.9 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.232e-05/0.01366, allocations: 28.88 kB / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.678e-05/0.01373, allocations: 28.31 kB / 275.9 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008127/0.01454, allocations: 252.9 kB / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.01455, allocations: 192 / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.946e-05/0.01459, allocations: 8.375 kB / 276.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.875e-05/0.01461, allocations: 12.36 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006547/0.01527, allocations: 153.8 kB / 276.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/0.01739, allocations: 0.7124 MB / 277 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006107/0.018, allocations: 171.3 kB / 277.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.01827, allocations: 75.66 kB / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.062e-05/0.01832, allocations: 4 kB / 277.3 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004012/0.01873, allocations: 123.2 kB / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 3.126e-06/0.01873, allocations: 0 / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008653/0.01959, allocations: 225.3 kB / 277.6 MB, free: 12.22 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.61e-05/0.01968, allocations: 63.34 kB / 277.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003639/0.02004, allocations: 225.8 kB / 277.9 MB, free: 11.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.153e-05/0.02011, allocations: 37.7 kB / 277.9 MB, free: 11.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002293/0.02033, allocations: 183.5 kB / 278.1 MB, free: 11.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.02046, allocations: 75.47 kB / 278.2 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002512/0.02071, allocations: 103.7 kB / 278.3 MB, free: 11.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000445/0.02115, allocations: 0.4962 MB / 278.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002656/0.02142, allocations: 68.62 kB / 278.9 MB, free: 10.92 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004041/0.02182, allocations: 150.7 kB / 279 MB, free: 10.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006362/0.02246, allocations: 209.2 kB / 279.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.02246, allocations: 0 / 279.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008043/0.02327, allocations: 257.3 kB / 279.5 MB, free: 10.24 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.02329, allocations: 7.938 kB / 279.5 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.0233, allocations: 4 kB / 279.5 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.961e-05/0.02333, allocations: 7.938 kB / 279.5 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.0236, allocations: 31.92 kB / 279.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.758e-05/0.02361, allocations: 4.219 kB / 279.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.02381, allocations: 31.83 kB / 279.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.02385, allocations: 12 kB / 279.6 MB, free: 10.14 MB / 266.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,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,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 0.000564/0.02442, allocations: 200.5 kB / 279.8 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.732e-05/0.02449, allocations: 27.83 kB / 279.8 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.419e-05/0.02459, allocations: 20.94 kB / 279.8 MB, free: 9.887 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.0246, allocations: 3.938 kB / 279.8 MB, free: 9.883 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.0246, allocations: 0 / 279.8 MB, free: 9.883 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.02461, allocations: 4 kB / 279.8 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001544/0.02615, allocations: 0.5458 MB / 280.4 MB, free: 9.293 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.02616, allocations: 4 kB / 280.4 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.02631, allocations: 16 kB / 280.4 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.02631, allocations: 0 / 280.4 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.02633, allocations: 0 / 280.4 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.061e-05/0.02634, allocations: 7.984 kB / 280.4 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.02635, allocations: 0 / 280.4 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007528/0.0271, allocations: 340.3 kB / 280.7 MB, free: 8.914 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.283e-05/0.02714, allocations: 19.84 kB / 280.7 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.234e-05/0.02718, allocations: 7.984 kB / 280.8 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.02735, allocations: 8 kB / 280.8 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.02749, allocations: 23.97 kB / 280.8 MB, free: 8.855 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/0.02752, allocations: 7.984 kB / 280.8 MB, free: 8.848 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001673/0.02769, allocations: 143.2 kB / 280.9 MB, free: 8.707 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.02769, allocations: 0 / 280.9 MB, free: 8.707 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005945/0.02828, allocations: 47.89 kB / 281 MB, free: 8.66 MB / 266.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,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 (24): * Single equations (assignments): 20 * 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 0.000198/0.02848, allocations: 99.19 kB / 281.1 MB, free: 8.555 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006886/0.02917, allocations: 187.5 kB / 281.3 MB, free: 8.367 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.02917, allocations: 448 / 281.3 MB, free: 8.367 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003006/0.02947, allocations: 95.45 kB / 281.3 MB, free: 8.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005277/0.03, allocations: 27.92 kB / 281.4 MB, free: 8.242 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.03106, allocations: 331.3 kB / 281.7 MB, free: 7.891 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/0.03128, allocations: 116.2 kB / 281.8 MB, free: 7.758 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.03141, allocations: 25.89 kB / 281.8 MB, free: 7.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.03151, allocations: 24.48 kB / 281.9 MB, free: 7.707 MB / 266.7 MB Notification: Performance of SimCode: time 1.001e-06/0.03152, allocations: 0 / 281.9 MB, free: 7.707 MB / 266.7 MB Notification: Performance of Templates: time 0.01024/0.04175, allocations: 1.731 MB / 283.6 MB, free: 5.992 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.618010591017082]