Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 115.1 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 51.92 kB / 374.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.1007, allocations: 53.33 MB / 427.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003328/0.104, allocations: 1.718 MB / 429.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007829/0.1048, allocations: 291.1 kB / 429.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.1049, allocations: 4 kB / 429.5 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.1051, allocations: 27.67 kB / 429.5 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.027e-05/0.1051, allocations: 27.78 kB / 429.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004413/0.1056, allocations: 111.8 kB / 429.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003854/0.106, allocations: 271.5 kB / 429.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003427/0.1063, allocations: 157.5 kB / 430 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.1064, allocations: 99.69 kB / 430.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001792/0.1066, allocations: 99.58 kB / 430.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.308e-05/0.1067, allocations: 20 kB / 430.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.242e-05/0.1067, allocations: 28 kB / 430.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.496e-05/0.1068, allocations: 63.77 kB / 430.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.1069, allocations: 103.5 kB / 430.5 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.1073, allocations: 254.9 kB / 430.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1073, allocations: 0 / 430.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1073, allocations: 0 / 430.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.1073, allocations: 0 / 430.7 MB, free: 1.066 MB / 350.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.0007795/0.1081, allocations: 498.5 kB / 431.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.1082, allocations: 8.031 kB / 431.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002838/0.1084, allocations: 44.77 kB / 431.2 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.1088, allocations: 228 kB / 431.5 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.748e-05/0.1088, allocations: 24.92 kB / 431.5 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.1089, allocations: 28.38 kB / 431.5 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.208/0.3169, allocations: 267.1 kB / 431.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.3169, allocations: 8.266 kB / 431.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.3169, allocations: 10.75 kB / 431.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.3169, allocations: 5.375 kB / 431.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000394/0.3173, allocations: 163.1 kB / 432 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.3184, allocations: 0.9572 MB / 432.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002746/0.3187, allocations: 159.3 kB / 433.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.3188, allocations: 68.03 kB / 433.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.3188, allocations: 3.219 kB / 433.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002098/0.319, allocations: 135.7 kB / 433.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.144e-06/0.319, allocations: 1.688 kB / 433.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004259/0.3195, allocations: 224.6 kB / 433.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.3195, allocations: 87.14 kB / 433.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.3196, allocations: 167.6 kB / 433.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.3196, allocations: 37.23 kB / 433.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.741e-05/0.3197, allocations: 136.6 kB / 433.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.025e-05/0.3197, allocations: 61.98 kB / 434 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.645e-05/0.3198, allocations: 79.42 kB / 434 MB, free: 10.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.7e-05/0.3199, allocations: 327.5 kB / 434.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.32, allocations: 67.22 kB / 434.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.3201, allocations: 148.5 kB / 434.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.3203, allocations: 195 kB / 434.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3203, allocations: 2.531 kB / 434.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003481/0.3207, allocations: 252.5 kB / 435 MB, free: 9.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3207, allocations: 6.156 kB / 435 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3207, allocations: 2.25 kB / 435 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.3207, allocations: 5.312 kB / 435 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.3209, allocations: 36.97 kB / 435.1 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.3209, allocations: 8.688 kB / 435.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.321, allocations: 30.94 kB / 435.1 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.321, allocations: 18.56 kB / 435.1 MB, free: 9.535 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.0001171/0.3211, allocations: 156.6 kB / 435.3 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.3211, allocations: 9.734 kB / 435.3 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.713e-05/0.3212, allocations: 18.14 kB / 435.3 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.3212, allocations: 7.266 kB / 435.3 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.3212, allocations: 9.156 kB / 435.3 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3212, allocations: 1.469 kB / 435.3 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006026/0.3218, allocations: 0.5678 MB / 435.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3218, allocations: 6.234 kB / 435.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.178e-05/0.3219, allocations: 18.38 kB / 435.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.3219, allocations: 1.469 kB / 435.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.3219, allocations: 4.438 kB / 435.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3219, allocations: 1.656 kB / 435.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3219, allocations: 3.688 kB / 435.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002566/0.3222, allocations: 275.4 kB / 436.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-05/0.3222, allocations: 100.8 kB / 436.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.3222, allocations: 6.438 kB / 436.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.941e-05/0.3223, allocations: 6.812 kB / 436.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.943e-05/0.3224, allocations: 20.36 kB / 436.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.3224, allocations: 10.62 kB / 436.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.281e-05/0.3224, allocations: 97.86 kB / 436.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3224, allocations: 2.344 kB / 436.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003292/0.3228, allocations: 50.33 kB / 436.5 MB, free: 8.66 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.000104/0.3229, allocations: 114.1 kB / 436.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003107/0.3232, allocations: 167.6 kB / 436.8 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3232, allocations: 4.125 kB / 436.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.3233, allocations: 75.02 kB / 436.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/0.3236, allocations: 27.25 kB / 436.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005874/0.3242, allocations: 355.8 kB / 437.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001614/0.3243, allocations: 0.7321 MB / 437.9 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.041e-05/0.3244, allocations: 28.62 kB / 438 MB, free: 7.512 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3244, allocations: 0 / 438 MB, free: 7.512 MB / 350.1 MB Notification: Performance of Templates: time 0.005016/0.3294, allocations: 2.273 MB / 440.2 MB, free: 7.297 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.296309150988236]