Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.001417/0.001417, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002138/0.002138, allocations: 213.3 kB / 24.48 MB, free: 3.941 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 2.06/2.06, allocations: 230.6 MB / 258.2 MB, free: 7.797 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 55.92 kB / 378.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.4007, allocations: 53.36 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003101/0.4038, allocations: 1.475 MB / 433.8 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007978/0.4046, allocations: 287.2 kB / 434.1 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.4047, allocations: 7.938 kB / 434.1 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.4048, allocations: 19.73 kB / 434.1 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.861e-05/0.4049, allocations: 19.81 kB / 434.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004412/0.4054, allocations: 127.8 kB / 434.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000393/0.4058, allocations: 263.5 kB / 434.5 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000295/0.406, allocations: 134.7 kB / 434.6 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.4062, allocations: 87.7 kB / 434.7 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.4063, allocations: 99.53 kB / 434.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.286e-05/0.4064, allocations: 20 kB / 434.8 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.813e-05/0.4064, allocations: 28 kB / 434.8 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.396e-05/0.4065, allocations: 55.83 kB / 434.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.4066, allocations: 83.64 kB / 435 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003279/0.407, allocations: 245.6 kB / 435.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.407, allocations: 4 kB / 435.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.407, allocations: 0 / 435.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.407, allocations: 0 / 435.2 MB, free: 3.797 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.0007396/0.4077, allocations: 409 kB / 435.6 MB, free: 3.367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.4078, allocations: 8.031 kB / 435.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003182/0.4081, allocations: 36.81 kB / 435.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003324/0.4084, allocations: 170.1 kB / 435.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/0.4084, allocations: 24.88 kB / 435.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.144e-05/0.4085, allocations: 28.38 kB / 435.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005149/0.409, allocations: 235.2 kB / 436.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.409, allocations: 192 / 436.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.653e-05/0.4091, allocations: 15.94 kB / 436.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.4091, allocations: 7.984 kB / 436.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000382/0.4095, allocations: 153.6 kB / 436.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.4105, allocations: 0.5658 MB / 436.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003724/0.4109, allocations: 158.7 kB / 437 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.4111, allocations: 72.78 kB / 437.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.4111, allocations: 7.984 kB / 437.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002499/0.4113, allocations: 115.2 kB / 437.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.943e-06/0.4113, allocations: 0 / 437.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006202/0.412, allocations: 223 kB / 437.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.412, allocations: 59.39 kB / 437.5 MB, free: 1.402 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.4122, allocations: 154 kB / 437.6 MB, free: 1.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.4122, allocations: 33.7 kB / 437.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.4123, allocations: 128.9 kB / 437.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.831e-05/0.4124, allocations: 59.48 kB / 437.8 MB, free: 1.012 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.4125, allocations: 82 kB / 437.9 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.4127, allocations: 326.8 kB / 438.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.4129, allocations: 60.62 kB / 438.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.4131, allocations: 128.1 kB / 438.4 MB, free: 396 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.4134, allocations: 175.1 kB / 438.6 MB, free: 196 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.4134, allocations: 0 / 438.6 MB, free: 196 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005009/0.4139, allocations: 245.3 kB / 438.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.4139, allocations: 11.94 kB / 438.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.414, allocations: 7.984 kB / 438.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.414, allocations: 4 kB / 438.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.4141, allocations: 27.92 kB / 438.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.4141, allocations: 4 kB / 438.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.4143, allocations: 32 kB / 438.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.4143, allocations: 12 kB / 438.9 MB, free: 15.85 MB / 350.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.0001796/0.4145, allocations: 157.8 kB / 439.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.129e-05/0.4145, allocations: 19.84 kB / 439.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.961e-05/0.4146, allocations: 16.94 kB / 439.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.4146, allocations: 4 kB / 439.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.4146, allocations: 0 / 439.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.4146, allocations: 7.922 kB / 439.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008427/0.4154, allocations: 473.7 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4154, allocations: 0 / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.505e-05/0.4155, allocations: 19.98 kB / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.4155, allocations: 0 / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.4155, allocations: 4 kB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.4155, allocations: 4 kB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4156, allocations: 0 / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003917/0.4159, allocations: 271.8 kB / 439.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.54e-05/0.416, allocations: 15.84 kB / 439.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.496e-05/0.416, allocations: 11.98 kB / 439.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.4161, allocations: 8 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.89e-05/0.4162, allocations: 23.95 kB / 440 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.4162, allocations: 8 kB / 440 MB, free: 14.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.394e-05/0.4163, allocations: 98.52 kB / 440.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4163, allocations: 3.938 kB / 440.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000398/0.4167, allocations: 47.89 kB / 440.1 MB, free: 14.62 MB / 350.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 20 * 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.0001375/0.4168, allocations: 99.19 kB / 440.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003667/0.4172, allocations: 167.8 kB / 440.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4172, allocations: 0 / 440.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001731/0.4174, allocations: 71.19 kB / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.4178, allocations: 24 kB / 440.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007027/0.4185, allocations: 315.5 kB / 440.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001586/0.4186, allocations: 116.5 kB / 440.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.345e-05/0.4187, allocations: 29.88 kB / 440.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.836e-05/0.4188, allocations: 19.44 kB / 440.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.4188, allocations: 0 / 440.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of Templates: time 0.006437/0.4252, allocations: 1.824 MB / 442.8 MB, free: 11.95 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.708521376000135]