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.0007487/0.0007487, allocations: 80.11 kB / 9.934 MB, free: 0.75 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001054/0.001803, allocations: 449.7 kB / 10.37 MB, free: 320 kB / 10.45 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.0007047/0.0007047, allocations: 165.1 kB / 11.26 MB, free: 2.906 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008475/0.001552, allocations: 463.6 kB / 11.72 MB, free: 2.449 MB / 13.93 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 0.9608/0.9608, allocations: 177.4 MB / 189.9 MB, free: 4.828 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0861/1.047, allocations: 53.85 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] 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 1.372e-06/1.372e-06, allocations: 0 / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.661e-05/1.798e-05, allocations: 2.312 kB / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002493/0.002511, allocations: 1.778 MB / 246.8 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005419/0.003053, allocations: 307 kB / 247.1 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.997e-05/0.003133, allocations: 11.94 kB / 247.1 MB, free: 11.56 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.823e-05/0.003222, allocations: 27.67 kB / 247.1 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.239e-05/0.003274, allocations: 27.78 kB / 247.1 MB, free: 11.51 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002962/0.00357, allocations: 115.7 kB / 247.2 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002862/0.003856, allocations: 279.5 kB / 247.5 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002265/0.004083, allocations: 160 kB / 247.7 MB, free: 10.97 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.004222, allocations: 139.8 kB / 247.8 MB, free: 10.83 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.004345, allocations: 75.75 kB / 247.9 MB, free: 10.76 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.268e-05/0.004377, allocations: 24 kB / 247.9 MB, free: 10.73 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.434e-05/0.004442, allocations: 24 kB / 247.9 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.581e-05/0.004497, allocations: 43.88 kB / 248 MB, free: 10.67 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.491e-05/0.004562, allocations: 55.86 kB / 248 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002318/0.004794, allocations: 167.3 kB / 248.2 MB, free: 10.45 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.549e-05/0.00481, allocations: 0 / 248.2 MB, free: 10.45 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.00481, allocations: 3.938 kB / 248.2 MB, free: 10.45 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.742e-05/0.004828, allocations: 4 kB / 248.2 MB, free: 10.44 MB / 250.7 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.0005808/0.005409, allocations: 435.5 kB / 248.6 MB, free: 9.984 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.005441, allocations: 12.03 kB / 248.6 MB, free: 9.973 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002283/0.005669, allocations: 126 kB / 248.8 MB, free: 9.832 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001855/0.005855, allocations: 153.5 kB / 248.9 MB, free: 9.656 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.005885, allocations: 20.88 kB / 248.9 MB, free: 9.637 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.477e-05/0.00593, allocations: 28.38 kB / 249 MB, free: 9.609 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.006178, allocations: 222.5 kB / 249.2 MB, free: 9.367 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.006189, allocations: 192 / 249.2 MB, free: 9.367 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.006205, allocations: 8.375 kB / 249.2 MB, free: 9.359 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.006215, allocations: 16.31 kB / 249.2 MB, free: 9.344 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001052/0.00632, allocations: 75.31 kB / 249.3 MB, free: 9.27 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007101/0.00703, allocations: 0.7154 MB / 250 MB, free: 8.527 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.007192, allocations: 117.1 kB / 250.1 MB, free: 8.395 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.64e-05/0.007238, allocations: 41.7 kB / 250.1 MB, free: 8.348 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.007254, allocations: 8 kB / 250.2 MB, free: 8.34 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001985/0.007452, allocations: 116.8 kB / 250.3 MB, free: 8.207 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.222e-06/0.007454, allocations: 4 kB / 250.3 MB, free: 8.203 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002057/0.007659, allocations: 139 kB / 250.4 MB, free: 8.062 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.007708, allocations: 85.11 kB / 250.5 MB, free: 7.961 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.192e-05/0.0078, allocations: 158.5 kB / 250.6 MB, free: 7.793 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.007824, allocations: 33.7 kB / 250.7 MB, free: 7.754 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.026e-05/0.007894, allocations: 144.7 kB / 250.8 MB, free: 7.609 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.996e-05/0.007944, allocations: 67.45 kB / 250.9 MB, free: 7.543 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.03e-05/0.008024, allocations: 85.41 kB / 251 MB, free: 7.453 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.6e-05/0.00811, allocations: 334.8 kB / 251.3 MB, free: 7.117 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.192e-05/0.008152, allocations: 27.98 kB / 251.3 MB, free: 7.09 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.075e-05/0.008233, allocations: 108.6 kB / 251.4 MB, free: 6.953 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.008376, allocations: 144.4 kB / 251.6 MB, free: 6.781 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.008379, allocations: 0 / 251.6 MB, free: 6.781 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002013/0.00858, allocations: 185.3 kB / 251.8 MB, free: 6.594 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.008595, allocations: 7.938 kB / 251.8 MB, free: 6.586 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.008601, allocations: 4 kB / 251.8 MB, free: 6.582 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.008611, allocations: 4 kB / 251.8 MB, free: 6.578 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.008752, allocations: 35.92 kB / 251.8 MB, free: 6.543 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.008757, allocations: 4 kB / 251.8 MB, free: 6.539 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.419e-05/0.008831, allocations: 28.12 kB / 251.8 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.008843, allocations: 12 kB / 251.8 MB, free: 6.5 MB / 250.7 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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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.0002225/0.009065, allocations: 153.7 kB / 252 MB, free: 6.34 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.009091, allocations: 19.98 kB / 252 MB, free: 6.32 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.572e-05/0.009126, allocations: 16.88 kB / 252 MB, free: 6.305 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.00913, allocations: 7.938 kB / 252 MB, free: 6.297 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.009133, allocations: 0 / 252 MB, free: 6.297 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.009137, allocations: 0 / 252 MB, free: 6.297 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003978/0.009534, allocations: 370.9 kB / 252.4 MB, free: 5.902 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.009537, allocations: 0 / 252.4 MB, free: 5.902 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.6e-05/0.009593, allocations: 16 kB / 252.4 MB, free: 5.887 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.58e-05/0.009609, allocations: 19.89 kB / 252.4 MB, free: 5.867 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.009611, allocations: 3.938 kB / 252.4 MB, free: 5.863 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.009621, allocations: 8 kB / 252.4 MB, free: 5.855 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.009624, allocations: 0 / 252.4 MB, free: 5.855 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.009625, allocations: 0 / 252.4 MB, free: 5.855 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001502/0.009775, allocations: 216.3 kB / 252.7 MB, free: 5.625 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/0.009796, allocations: 11.98 kB / 252.7 MB, free: 5.613 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.77e-05/0.009854, allocations: 0 / 252.7 MB, free: 5.613 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.799e-05/0.009902, allocations: 19.97 kB / 252.7 MB, free: 5.594 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.009913, allocations: 11.98 kB / 252.7 MB, free: 5.582 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.134e-05/0.009934, allocations: 24.59 kB / 252.7 MB, free: 5.559 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009934, allocations: 0 / 252.7 MB, free: 5.559 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002434/0.01018, allocations: 55.81 kB / 252.8 MB, free: 5.504 MB / 250.7 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 8.66e-05/0.01026, allocations: 88.36 kB / 252.9 MB, free: 5.41 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001703/0.01043, allocations: 124.5 kB / 253 MB, free: 5.285 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.01044, allocations: 0.5625 kB / 253 MB, free: 5.285 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.871e-05/0.01051, allocations: 64.7 kB / 253.1 MB, free: 5.219 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001959/0.01071, allocations: 43.02 kB / 253.1 MB, free: 5.18 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005611/0.01127, allocations: 326.2 kB / 253.4 MB, free: 4.832 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.324e-05/0.01132, allocations: 84.27 kB / 253.5 MB, free: 4.73 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.747e-05/0.01139, allocations: 22.02 kB / 253.5 MB, free: 4.703 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.978e-05/0.01148, allocations: 79.36 kB / 253.6 MB, free: 4.625 MB / 250.7 MB Notification: Performance of SimCode: time 5.1e-07/0.01148, allocations: 0 / 253.6 MB, free: 4.625 MB / 250.7 MB Notification: Performance of Templates: time 0.004415/0.01589, allocations: 1.932 MB / 255.5 MB, free: 2.723 MB / 250.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.3908796599134803]