Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.0008344/0.0008344, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001215/0.002049, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0007302/0.0007302, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00103/0.00176, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9674/0.9674, allocations: 173.4 MB / 185.8 MB, free: 9.004 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08611/1.054, allocations: 52.5 MB / 238.3 MB, free: 4.445 MB / 234.7 MB " [Timeout remaining time 179] 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 239.5 MB, free: 3.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.036e-05/2.188e-05, allocations: 6.312 kB / 239.5 MB, free: 3.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002517/0.002539, allocations: 1.729 MB / 241.3 MB, free: 1.48 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005693/0.003108, allocations: 306.9 kB / 241.5 MB, free: 1.18 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.838e-05/0.003206, allocations: 7.938 kB / 241.6 MB, free: 1.172 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.003315, allocations: 23.73 kB / 241.6 MB, free: 1.148 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.47e-05/0.00336, allocations: 31.67 kB / 241.6 MB, free: 1.117 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003715/0.003732, allocations: 127.8 kB / 241.7 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002637/0.003995, allocations: 275.4 kB / 242 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002465/0.004242, allocations: 166.2 kB / 242.2 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.00437, allocations: 139.7 kB / 242.3 MB, free: 424 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.004484, allocations: 71.77 kB / 242.4 MB, free: 352 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.004516, allocations: 27.94 kB / 242.4 MB, free: 324 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.958e-05/0.004605, allocations: 39.92 kB / 242.4 MB, free: 284 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.238e-05/0.004657, allocations: 47.86 kB / 242.5 MB, free: 236 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.267e-05/0.00472, allocations: 55.88 kB / 242.5 MB, free: 180 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.004956, allocations: 167.3 kB / 242.7 MB, free: 12 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.654e-05/0.004973, allocations: 0 / 242.7 MB, free: 12 kB / 234.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.004974, allocations: 0 / 242.7 MB, free: 12 kB / 234.7 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.004993, allocations: 0 / 242.7 MB, free: 12 kB / 234.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.0005789/0.005571, allocations: 439.4 kB / 243.1 MB, free: 15.55 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.005608, allocations: 12.02 kB / 243.1 MB, free: 15.54 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.169e-05/0.00567, allocations: 40.91 kB / 243.2 MB, free: 15.5 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.005877, allocations: 153.4 kB / 243.3 MB, free: 15.33 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.628e-05/0.005913, allocations: 24.88 kB / 243.4 MB, free: 15.3 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.87e-05/0.005942, allocations: 28.38 kB / 243.4 MB, free: 15.28 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.006209, allocations: 230.5 kB / 243.6 MB, free: 15.03 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.006221, allocations: 192 / 243.6 MB, free: 15.03 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.006236, allocations: 8.375 kB / 243.6 MB, free: 15.02 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.006245, allocations: 4.375 kB / 243.6 MB, free: 15.02 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001022/0.006347, allocations: 79.33 kB / 243.7 MB, free: 14.94 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007717/0.007119, allocations: 0.7271 MB / 244.4 MB, free: 14.18 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.007275, allocations: 123.8 kB / 244.6 MB, free: 14.05 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.244e-05/0.007318, allocations: 49.69 kB / 244.6 MB, free: 13.99 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.007336, allocations: 7.984 kB / 244.6 MB, free: 13.98 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001301/0.007466, allocations: 120.9 kB / 244.7 MB, free: 13.85 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.222e-06/0.007467, allocations: 0 / 244.7 MB, free: 13.85 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001884/0.007656, allocations: 140.6 kB / 244.9 MB, free: 13.71 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.382e-05/0.00772, allocations: 81.11 kB / 244.9 MB, free: 13.61 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.933e-05/0.007819, allocations: 166.3 kB / 245.1 MB, free: 13.43 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.007843, allocations: 41.7 kB / 245.1 MB, free: 13.39 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.005e-05/0.007913, allocations: 136.9 kB / 245.3 MB, free: 13.25 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.211e-05/0.007955, allocations: 71.44 kB / 245.3 MB, free: 13.18 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-05/0.008025, allocations: 77.62 kB / 245.4 MB, free: 13.1 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.824e-05/0.008113, allocations: 330.8 kB / 245.7 MB, free: 12.77 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.467e-05/0.008148, allocations: 27.98 kB / 245.8 MB, free: 12.74 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.306e-05/0.008221, allocations: 104.3 kB / 245.9 MB, free: 12.61 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001314/0.008352, allocations: 164.4 kB / 246 MB, free: 12.41 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.008355, allocations: 0 / 246 MB, free: 12.41 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001627/0.008518, allocations: 173.3 kB / 246.2 MB, free: 12.24 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.008535, allocations: 12.22 kB / 246.2 MB, free: 12.23 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.008543, allocations: 7.938 kB / 246.2 MB, free: 12.22 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.008557, allocations: 4 kB / 246.2 MB, free: 12.21 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.008709, allocations: 47.91 kB / 246.3 MB, free: 12.17 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.008715, allocations: 4 kB / 246.3 MB, free: 12.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.896e-05/0.008774, allocations: 31.72 kB / 246.3 MB, free: 12.13 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.008796, allocations: 16 kB / 246.3 MB, free: 12.12 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 8.609e-05/0.008882, allocations: 137.8 kB / 246.5 MB, free: 11.97 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.008901, allocations: 19.98 kB / 246.5 MB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001539/0.009055, allocations: 114.5 kB / 246.6 MB, free: 11.83 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.009059, allocations: 8 kB / 246.6 MB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.009061, allocations: 0 / 246.6 MB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.009066, allocations: 3.984 kB / 246.6 MB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006443/0.00971, allocations: 374.2 kB / 247 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.009714, allocations: 4 kB / 247 MB, free: 11.42 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.868e-05/0.009773, allocations: 23.92 kB / 247 MB, free: 11.4 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.692e-05/0.00979, allocations: 19.84 kB / 247 MB, free: 11.38 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.009793, allocations: 0 / 247 MB, free: 11.38 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.308e-06/0.009803, allocations: 3.984 kB / 247 MB, free: 11.38 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.009805, allocations: 4 kB / 247 MB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.009807, allocations: 4 kB / 247 MB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001321/0.009939, allocations: 228.5 kB / 247.3 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.009956, allocations: 8 kB / 247.3 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.515e-05/0.01, allocations: 8 kB / 247.3 MB, free: 11.11 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.01005, allocations: 27.94 kB / 247.3 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.01006, allocations: 0 / 247.3 MB, free: 11.08 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.759e-05/0.01007, allocations: 20.84 kB / 247.3 MB, free: 11.06 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01007, allocations: 0 / 247.3 MB, free: 11.06 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001831/0.01026, allocations: 51.89 kB / 247.4 MB, free: 11.01 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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0001215/0.01038, allocations: 104.1 kB / 247.5 MB, free: 10.9 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.01053, allocations: 121.4 kB / 247.6 MB, free: 10.78 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/0.01054, allocations: 7.984 kB / 247.6 MB, free: 10.77 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.703e-05/0.01061, allocations: 64.64 kB / 247.7 MB, free: 10.7 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001671/0.01077, allocations: 43.91 kB / 247.7 MB, free: 10.66 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000519/0.01129, allocations: 334.6 kB / 248 MB, free: 10.3 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.559e-05/0.01134, allocations: 80.27 kB / 248.1 MB, free: 10.21 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.863e-05/0.0114, allocations: 29.94 kB / 248.1 MB, free: 10.18 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.264e-05/0.01148, allocations: 83.36 kB / 248.2 MB, free: 10.1 MB / 250.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01148, allocations: 0 / 248.2 MB, free: 10.1 MB / 250.7 MB Notification: Performance of Templates: time 0.004113/0.01559, allocations: 2.201 MB / 250.4 MB, free: 7.938 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.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.4856771593913436]