Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001776/0.001776, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002226/0.002226, allocations: 193.7 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 55.91 kB / 370.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2917, allocations: 52.18 MB / 423 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002594/0.2943, allocations: 1.473 MB / 424.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006581/0.295, allocations: 275.2 kB / 424.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.739e-05/0.2951, allocations: 0 / 424.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.2952, allocations: 23.73 kB / 424.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.597e-05/0.2952, allocations: 19.8 kB / 424.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004837/0.2957, allocations: 119.8 kB / 424.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003273/0.296, allocations: 263.5 kB / 425.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002636/0.2963, allocations: 145.8 kB / 425.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.992e-05/0.2964, allocations: 87.7 kB / 425.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.2965, allocations: 83.59 kB / 425.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.604e-05/0.2966, allocations: 20 kB / 425.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.242e-05/0.2967, allocations: 32 kB / 425.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.309e-05/0.2967, allocations: 55.81 kB / 425.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.277e-05/0.2968, allocations: 75.66 kB / 425.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003026/0.2971, allocations: 249.2 kB / 425.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2971, allocations: 0 / 425.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2971, allocations: 0 / 425.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.2971, allocations: 4 kB / 425.9 MB, free: 11.59 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.0006519/0.2978, allocations: 417 kB / 426.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.2978, allocations: 8.031 kB / 426.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.006e-05/0.2979, allocations: 28.73 kB / 426.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.2982, allocations: 178.2 kB / 426.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.579e-05/0.2982, allocations: 20.88 kB / 426.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.2982, allocations: 24.38 kB / 426.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004202/0.2987, allocations: 239.2 kB / 426.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.2987, allocations: 192 / 426.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.2987, allocations: 15.94 kB / 426.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.2987, allocations: 8 kB / 426.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003092/0.299, allocations: 161.6 kB / 427 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000917/0.2999, allocations: 0.5659 MB / 427.6 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.3002, allocations: 154.8 kB / 427.7 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.3004, allocations: 78.83 kB / 427.8 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.041e-05/0.3004, allocations: 0 / 427.8 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001978/0.3006, allocations: 126.7 kB / 427.9 MB, free: 9.469 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.3006, allocations: 0 / 427.9 MB, free: 9.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000425/0.301, allocations: 221.4 kB / 428.1 MB, free: 9.246 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.3011, allocations: 59.41 kB / 428.2 MB, free: 9.176 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.3012, allocations: 145.9 kB / 428.3 MB, free: 9.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.749e-05/0.3012, allocations: 41.69 kB / 428.4 MB, free: 8.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.515e-05/0.3013, allocations: 128.9 kB / 428.5 MB, free: 8.844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.884e-05/0.3014, allocations: 67.47 kB / 428.6 MB, free: 8.777 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.3015, allocations: 74 kB / 428.6 MB, free: 8.695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3016, allocations: 326.8 kB / 429 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.3017, allocations: 64.62 kB / 429 MB, free: 8.305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.3019, allocations: 128 kB / 429.2 MB, free: 8.156 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000247/0.3022, allocations: 166.8 kB / 429.3 MB, free: 7.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.3022, allocations: 4 kB / 429.3 MB, free: 7.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000391/0.3025, allocations: 253.9 kB / 429.6 MB, free: 7.711 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.3026, allocations: 11.94 kB / 429.6 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3026, allocations: 0 / 429.6 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.3026, allocations: 7.984 kB / 429.6 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.3027, allocations: 31.92 kB / 429.6 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.3027, allocations: 7.984 kB / 429.6 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.533e-05/0.3028, allocations: 27.78 kB / 429.7 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.3029, allocations: 8 kB / 429.7 MB, free: 7.617 MB / 334.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.0001549/0.303, allocations: 161.7 kB / 429.8 MB, free: 7.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.303, allocations: 19.95 kB / 429.8 MB, free: 7.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003632/0.3034, allocations: 198.5 kB / 430 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3034, allocations: 4 kB / 430 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3034, allocations: 0 / 430 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3034, allocations: 0 / 430 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006929/0.3041, allocations: 493.7 kB / 430.5 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3041, allocations: 0 / 430.5 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-05/0.3042, allocations: 19.92 kB / 430.5 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.103e-06/0.3042, allocations: 0 / 430.5 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.3042, allocations: 4 kB / 430.5 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3042, allocations: 8 kB / 430.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3042, allocations: 0 / 430.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003564/0.3046, allocations: 291.6 kB / 430.8 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.056e-05/0.3046, allocations: 15.84 kB / 430.9 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.3046, allocations: 8 kB / 430.9 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.775e-05/0.3047, allocations: 11.98 kB / 430.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.947e-05/0.3048, allocations: 23.89 kB / 430.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.3048, allocations: 11.94 kB / 430.9 MB, free: 6.301 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.868e-05/0.3049, allocations: 97.52 kB / 431 MB, free: 6.207 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3049, allocations: 0 / 431 MB, free: 6.207 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003146/0.3052, allocations: 51.83 kB / 431.1 MB, free: 6.156 MB / 334.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0001577/0.3054, allocations: 107.2 kB / 431.2 MB, free: 6.043 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003541/0.3057, allocations: 171.8 kB / 431.3 MB, free: 5.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3057, allocations: 0 / 431.3 MB, free: 5.875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.3059, allocations: 71.86 kB / 431.4 MB, free: 5.805 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.3062, allocations: 23.97 kB / 431.4 MB, free: 5.781 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005945/0.3068, allocations: 332 kB / 431.7 MB, free: 5.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001236/0.3069, allocations: 136.4 kB / 431.9 MB, free: 5.277 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.385e-05/0.3069, allocations: 21.95 kB / 431.9 MB, free: 5.258 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.091e-05/0.307, allocations: 31.42 kB / 431.9 MB, free: 5.227 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.307, allocations: 0 / 431.9 MB, free: 5.227 MB / 334.1 MB Notification: Performance of Templates: time 0.005862/0.3129, allocations: 1.999 MB / 433.9 MB, free: 3.258 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.695151234045625]