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.001867/0.001867, allocations: 109.1 kB / 21.18 MB, free: 0.7852 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.002498/0.002498, allocations: 217.3 kB / 24.49 MB, free: 4.172 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.465/1.465, allocations: 230.5 MB / 258.1 MB, free: 8.031 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.001992/0.001992, allocations: 59.91 kB / 379 MB, free: 2.539 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.27, allocations: 53.4 MB / 432.4 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002658/0.2727, allocations: 1.506 MB / 433.9 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006547/0.2734, allocations: 283.1 kB / 434.2 MB, free: 5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.298e-05/0.2735, allocations: 4 kB / 434.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.2736, allocations: 27.67 kB / 434.2 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.306e-05/0.2736, allocations: 19.86 kB / 434.2 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003642/0.274, allocations: 123.7 kB / 434.4 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003303/0.2743, allocations: 267.5 kB / 434.6 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002638/0.2746, allocations: 138.6 kB / 434.8 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001/0.2747, allocations: 79.78 kB / 434.8 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/0.2748, allocations: 103.5 kB / 434.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.628e-05/0.2749, allocations: 24 kB / 435 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.987e-05/0.2749, allocations: 28 kB / 435 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.02e-05/0.275, allocations: 51.89 kB / 435 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.2751, allocations: 95.47 kB / 435.1 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003108/0.2754, allocations: 248.2 kB / 435.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.2754, allocations: 0 / 435.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2754, allocations: 0 / 435.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.2754, allocations: 0 / 435.4 MB, free: 3.812 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.0006428/0.276, allocations: 417 kB / 435.8 MB, free: 3.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2761, allocations: 8.031 kB / 435.8 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.2763, allocations: 28.84 kB / 435.8 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002813/0.2766, allocations: 170.2 kB / 436 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.718e-05/0.2766, allocations: 28.8 kB / 436 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.2766, allocations: 24.38 kB / 436 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004243/0.2771, allocations: 243.2 kB / 436.3 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.2771, allocations: 192 / 436.3 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.177e-05/0.2771, allocations: 7.938 kB / 436.3 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.2771, allocations: 8 kB / 436.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002902/0.2774, allocations: 157.7 kB / 436.4 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009663/0.2784, allocations: 0.6549 MB / 437.1 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000299/0.2787, allocations: 161.6 kB / 437.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.2788, allocations: 72.84 kB / 437.3 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.2788, allocations: 7.984 kB / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002037/0.279, allocations: 118.3 kB / 437.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.279, allocations: 0 / 437.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004115/0.2794, allocations: 213.4 kB / 437.7 MB, free: 1.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.2795, allocations: 55.41 kB / 437.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.2796, allocations: 157.6 kB / 437.9 MB, free: 1.164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.2796, allocations: 37.7 kB / 437.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.2797, allocations: 132.8 kB / 438 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.594e-05/0.2798, allocations: 63.48 kB / 438.1 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.877e-05/0.2799, allocations: 74.02 kB / 438.2 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.28, allocations: 326.8 kB / 438.5 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.2801, allocations: 64.56 kB / 438.5 MB, free: 460 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.2803, allocations: 132.1 kB / 438.7 MB, free: 304 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.2806, allocations: 182.6 kB / 438.9 MB, free: 96 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2806, allocations: 0 / 438.9 MB, free: 96 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003817/0.2809, allocations: 233.4 kB / 439.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.281, allocations: 10.5 kB / 439.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.281, allocations: 3.984 kB / 439.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.281, allocations: 4 kB / 439.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.2811, allocations: 40.02 kB / 439.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.118e-06/0.2811, allocations: 4 kB / 439.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.709e-05/0.2812, allocations: 31.78 kB / 439.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.2812, allocations: 8 kB / 439.2 MB, free: 15.76 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.0001483/0.2814, allocations: 157.8 kB / 439.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.357e-05/0.2814, allocations: 15.89 kB / 439.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.837e-05/0.2815, allocations: 12.94 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.2815, allocations: 4 kB / 439.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.2815, allocations: 4 kB / 439.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.2815, allocations: 3.984 kB / 439.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006907/0.2822, allocations: 0.5178 MB / 439.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.2822, allocations: 0 / 439.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.67e-05/0.2822, allocations: 19.92 kB / 439.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.2822, allocations: 0 / 439.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.2823, allocations: 8 kB / 439.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2823, allocations: 0 / 439.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.2823, allocations: 0 / 439.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003143/0.2826, allocations: 279.9 kB / 440.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.85e-05/0.2826, allocations: 11.89 kB / 440.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.2826, allocations: 4 kB / 440.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.375e-05/0.2827, allocations: 7.984 kB / 440.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.944e-05/0.2828, allocations: 23.97 kB / 440.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.2828, allocations: 11.94 kB / 440.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.683e-05/0.2829, allocations: 91.27 kB / 440.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2829, allocations: 4 kB / 440.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002859/0.2831, allocations: 51.84 kB / 440.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.0001156/0.2833, allocations: 107.2 kB / 440.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003094/0.2836, allocations: 155.8 kB / 440.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.2836, allocations: 0 / 440.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.2837, allocations: 75.84 kB / 440.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.284, allocations: 28.36 kB / 440.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000581/0.2845, allocations: 341.1 kB / 441.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.2849, allocations: 0.7284 MB / 441.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.915e-05/0.285, allocations: 19.44 kB / 441.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.285, allocations: 4 kB / 441.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of Templates: time 0.004122/0.2891, allocations: 2.198 MB / 444 MB, free: 10.76 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/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: 6.974255163921043]