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.001735/0.001735, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.002149/0.002149, allocations: 206.4 kB / 23.72 MB, free: 4.391 MB / 14.72 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.581/1.581, allocations: 230.5 MB / 257.4 MB, free: 7.754 MB / 206.1 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 0.002003/0.002003, allocations: 71.83 kB / 378.2 MB, free: 2.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2764, allocations: 53.39 MB / 431.6 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002672/0.279, allocations: 1.481 MB / 433.1 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006905/0.2797, allocations: 279.2 kB / 433.4 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.638e-05/0.2798, allocations: 7.938 kB / 433.4 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.28, allocations: 27.73 kB / 433.4 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.489e-05/0.28, allocations: 15.81 kB / 433.4 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000405/0.2804, allocations: 123.8 kB / 433.5 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003496/0.2808, allocations: 259.5 kB / 433.8 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002805/0.2811, allocations: 138.7 kB / 433.9 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.2812, allocations: 83.72 kB / 434 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.2813, allocations: 79.59 kB / 434.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.632e-05/0.2814, allocations: 24 kB / 434.1 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.438e-05/0.2814, allocations: 31.94 kB / 434.1 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.566e-05/0.2815, allocations: 55.83 kB / 434.2 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.998e-05/0.2816, allocations: 79.64 kB / 434.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003204/0.2819, allocations: 245.2 kB / 434.5 MB, free: 3.645 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2819, allocations: 0 / 434.5 MB, free: 3.645 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2819, allocations: 0 / 434.5 MB, free: 3.645 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.282, allocations: 0 / 434.5 MB, free: 3.645 MB / 334.1 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.0007004/0.2827, allocations: 413 kB / 434.9 MB, free: 3.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.2827, allocations: 11.98 kB / 434.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002258/0.2829, allocations: 32.83 kB / 435 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.2832, allocations: 170.2 kB / 435.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.807e-05/0.2833, allocations: 20.88 kB / 435.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.665e-05/0.2833, allocations: 24.38 kB / 435.2 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004223/0.2837, allocations: 239.2 kB / 435.4 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.2838, allocations: 192 / 435.4 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.024e-05/0.2838, allocations: 15.92 kB / 435.4 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.2838, allocations: 8 kB / 435.4 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003002/0.2841, allocations: 153.6 kB / 435.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009729/0.2851, allocations: 0.5736 MB / 436.1 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003287/0.2854, allocations: 162.3 kB / 436.3 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.2855, allocations: 68.83 kB / 436.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.2855, allocations: 0 / 436.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.2857, allocations: 122.3 kB / 436.5 MB, free: 1.543 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.2857, allocations: 0 / 436.5 MB, free: 1.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004484/0.2862, allocations: 217.3 kB / 436.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.2863, allocations: 59.41 kB / 436.8 MB, free: 1.254 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.2864, allocations: 149.9 kB / 436.9 MB, free: 1.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.2864, allocations: 33.7 kB / 436.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.2865, allocations: 140.9 kB / 437.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.403e-05/0.2866, allocations: 59.48 kB / 437.1 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.2867, allocations: 74.02 kB / 437.2 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.2868, allocations: 326.8 kB / 437.5 MB, free: 456 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.2869, allocations: 60.62 kB / 437.6 MB, free: 396 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.2871, allocations: 132.1 kB / 437.7 MB, free: 240 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002505/0.2874, allocations: 174.6 kB / 437.9 MB, free: 40 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2874, allocations: 0 / 437.9 MB, free: 40 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003961/0.2878, allocations: 249.3 kB / 438.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2878, allocations: 4 kB / 438.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.2878, allocations: 4 kB / 438.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.2878, allocations: 0 / 438.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.2879, allocations: 32.14 kB / 438.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.2879, allocations: 8 kB / 438.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.752e-05/0.288, allocations: 31.77 kB / 438.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.2881, allocations: 8 kB / 438.2 MB, free: 15.7 MB / 350.1 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.0001547/0.2882, allocations: 157.8 kB / 438.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.452e-05/0.2882, allocations: 15.84 kB / 438.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.387e-05/0.2883, allocations: 24.92 kB / 438.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2883, allocations: 0 / 438.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2883, allocations: 3.938 kB / 438.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2883, allocations: 0 / 438.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006553/0.289, allocations: 474.9 kB / 438.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.289, allocations: 0 / 438.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.051e-05/0.289, allocations: 19.92 kB / 438.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.289, allocations: 0 / 438.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.2891, allocations: 8 kB / 438.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2891, allocations: 0 / 438.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2891, allocations: 0 / 438.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003174/0.2894, allocations: 283.9 kB / 439.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.992e-05/0.2894, allocations: 15.84 kB / 439.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.388e-05/0.2894, allocations: 4 kB / 439.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.213e-05/0.2895, allocations: 15.98 kB / 439.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.548e-05/0.2896, allocations: 19.97 kB / 439.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.2896, allocations: 4 kB / 439.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.694e-05/0.2897, allocations: 99.27 kB / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2897, allocations: 0 / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002894/0.2899, allocations: 47.89 kB / 439.4 MB, free: 14.47 MB / 350.1 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.0001103/0.2901, allocations: 99.23 kB / 439.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003177/0.2904, allocations: 168 kB / 439.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2904, allocations: 4.125 kB / 439.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.2905, allocations: 75.84 kB / 439.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.2908, allocations: 23.98 kB / 439.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005733/0.2914, allocations: 315.5 kB / 440.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001303/0.2915, allocations: 120.5 kB / 440.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.663e-05/0.2916, allocations: 17.95 kB / 440.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.336e-05/0.2916, allocations: 23.42 kB / 440.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2916, allocations: 0 / 440.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of Templates: time 0.005339/0.297, allocations: 1.789 MB / 442 MB, free: 11.82 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] 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.656814485788345]