Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.00137/0.00137, 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.001518/0.001518, allocations: 207.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.583/1.583, allocations: 230.5 MB / 257.4 MB, free: 7.793 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002785/0.002785, allocations: 59.91 kB / 378.2 MB, free: 2.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2949, allocations: 53.4 MB / 431.6 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003166/0.2981, allocations: 1.701 MB / 433.3 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000722/0.2988, allocations: 283.2 kB / 433.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.2989, allocations: 7.938 kB / 433.6 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.299, allocations: 31.69 kB / 433.6 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.978e-05/0.2991, allocations: 19.78 kB / 433.6 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004074/0.2995, allocations: 123.8 kB / 433.8 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003619/0.2999, allocations: 271.5 kB / 434 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003113/0.3002, allocations: 145.9 kB / 434.2 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.3003, allocations: 99.62 kB / 434.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.3005, allocations: 83.55 kB / 434.3 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.461e-05/0.3005, allocations: 28 kB / 434.4 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.952e-05/0.3006, allocations: 24 kB / 434.4 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.558e-05/0.3006, allocations: 63.81 kB / 434.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.3007, allocations: 79.59 kB / 434.5 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003737/0.3011, allocations: 269.1 kB / 434.8 MB, free: 3.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.3011, allocations: 4 kB / 434.8 MB, free: 3.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3011, allocations: 0 / 434.8 MB, free: 3.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.3011, allocations: 0 / 434.8 MB, free: 3.336 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006937/0.3018, allocations: 413.2 kB / 435.2 MB, free: 2.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.3019, allocations: 15.98 kB / 435.2 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002195/0.3021, allocations: 36.78 kB / 435.3 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003112/0.3024, allocations: 166.3 kB / 435.4 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.783e-05/0.3024, allocations: 20.88 kB / 435.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.776e-05/0.3025, allocations: 28.38 kB / 435.5 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004951/0.303, allocations: 269.7 kB / 435.7 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.303, allocations: 192 / 435.7 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.303, allocations: 15.94 kB / 435.8 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.303, allocations: 8 kB / 435.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003241/0.3034, allocations: 161.6 kB / 435.9 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.3045, allocations: 0.8395 MB / 436.8 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003101/0.3048, allocations: 160.8 kB / 436.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.305, allocations: 73.67 kB / 437 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.305, allocations: 0 / 437 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002423/0.3052, allocations: 140 kB / 437.1 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.3052, allocations: 4 kB / 437.1 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004981/0.3057, allocations: 217.3 kB / 437.3 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.3058, allocations: 85.11 kB / 437.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.3059, allocations: 152.5 kB / 437.6 MB, free: 388 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.306, allocations: 41.69 kB / 437.6 MB, free: 340 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.3061, allocations: 148.7 kB / 437.8 MB, free: 184 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.452e-05/0.3061, allocations: 55.53 kB / 437.8 MB, free: 128 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.3062, allocations: 89.41 kB / 437.9 MB, free: 32 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3064, allocations: 326.8 kB / 438.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.3065, allocations: 63.97 kB / 438.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.3067, allocations: 136.5 kB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002814/0.307, allocations: 200.2 kB / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.307, allocations: 0 / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004102/0.3074, allocations: 253.6 kB / 438.9 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.3074, allocations: 8 kB / 438.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3074, allocations: 4 kB / 438.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.3075, allocations: 4 kB / 438.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.3076, allocations: 35.86 kB / 438.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.3076, allocations: 4 kB / 438.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.3077, allocations: 31.83 kB / 438.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.3077, allocations: 8 kB / 438.9 MB, free: 14.9 MB / 350.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.localCondition,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.0001745/0.3079, allocations: 169.6 kB / 439.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.3079, allocations: 11.95 kB / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.568e-05/0.308, allocations: 20.94 kB / 439.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.308, allocations: 0 / 439.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.308, allocations: 7.938 kB / 439.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.308, allocations: 0 / 439.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007233/0.3087, allocations: 0.4935 MB / 439.6 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3087, allocations: 0 / 439.6 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.302e-05/0.3088, allocations: 19.94 kB / 439.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.3088, allocations: 0 / 439.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.3088, allocations: 11.98 kB / 439.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.3088, allocations: 3.938 kB / 439.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3088, allocations: 4 kB / 439.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003317/0.3092, allocations: 276.1 kB / 440 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.286e-05/0.3092, allocations: 19.89 kB / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.3092, allocations: 7.938 kB / 440 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.67e-05/0.3093, allocations: 4 kB / 440 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.002e-05/0.3094, allocations: 27.89 kB / 440 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.3094, allocations: 8 kB / 440 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.983e-05/0.3095, allocations: 99.27 kB / 440.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3095, allocations: 0 / 440.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000305/0.3098, allocations: 51.89 kB / 440.2 MB, free: 13.61 MB / 350.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: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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 (24): * Single equations (assignments): 19 * 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.0001241/0.3099, allocations: 103.2 kB / 440.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003486/0.3103, allocations: 171.7 kB / 440.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3103, allocations: 4 kB / 440.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.3104, allocations: 67.77 kB / 440.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.3107, allocations: 19.98 kB / 440.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006404/0.3113, allocations: 337 kB / 440.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.3115, allocations: 125.5 kB / 441 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.689e-05/0.3115, allocations: 21.95 kB / 441 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.241e-05/0.3116, allocations: 27.44 kB / 441 MB, free: 12.69 MB / 350.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3116, allocations: 0 / 441 MB, free: 12.69 MB / 350.1 MB Notification: Performance of Templates: time 0.005428/0.317, allocations: 1.808 MB / 442.8 MB, free: 10.91 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.648961644619703]