Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.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.002522/0.002522, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002036/0.002036, allocations: 169.3 kB / 24.28 MB, free: 152 kB / 18.57 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.576/1.576, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 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.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows") translateModel(Modelica.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.091e-05/3.303e-05, allocations: 6.312 kB / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003797/0.00383, allocations: 2.253 MB / 274.6 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004246/0.004255, allocations: 191.3 kB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.624e-05/0.004351, allocations: 7.938 kB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 8.333e-05/0.004434, allocations: 39.64 kB / 274.8 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001687/0.004603, allocations: 63.36 kB / 274.8 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001643/0.004767, allocations: 55.92 kB / 274.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002886/0.005056, allocations: 242.8 kB / 275.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.005242, allocations: 74.95 kB / 275.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002128/0.005455, allocations: 147.7 kB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001449/0.0056, allocations: 71.8 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.391e-05/0.005644, allocations: 24 kB / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.18e-05/0.005686, allocations: 20 kB / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.465e-05/0.00574, allocations: 47.83 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.005846, allocations: 83.81 kB / 275.6 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.006201, allocations: 263.1 kB / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.006204, allocations: 0 / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.006204, allocations: 0 / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.00621, allocations: 0 / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001095/0.007305, allocations: 0.5466 MB / 276.4 MB, free: 13.69 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.007343, allocations: 12.03 kB / 276.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.376e-05/0.007437, allocations: 40.8 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.007674, allocations: 160.3 kB / 276.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.0077, allocations: 16.88 kB / 276.6 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.968e-05/0.00775, allocations: 28.33 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004149/0.008165, allocations: 255.3 kB / 276.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.008182, allocations: 8.188 kB / 276.9 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.166e-05/0.008214, allocations: 8.375 kB / 276.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.008224, allocations: 8.375 kB / 276.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002553/0.008479, allocations: 123.8 kB / 277 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.009819, allocations: 0.9776 MB / 278 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002945/0.01011, allocations: 181.4 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00013/0.01024, allocations: 79.12 kB / 278.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.01026, allocations: 4 kB / 278.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.0103, allocations: 37.39 kB / 278.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.082e-06/0.0103, allocations: 0 / 278.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004197/0.01072, allocations: 165.5 kB / 278.5 MB, free: 11.44 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.715e-05/0.01081, allocations: 114.7 kB / 278.6 MB, free: 11.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.01107, allocations: 250.5 kB / 278.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.01109, allocations: 29.64 kB / 278.9 MB, free: 11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.01128, allocations: 219 kB / 279.1 MB, free: 10.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.669e-05/0.01135, allocations: 71.42 kB / 279.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.01145, allocations: 59.66 kB / 279.2 MB, free: 10.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000285/0.01174, allocations: 0.5118 MB / 279.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.213e-05/0.01183, allocations: 44.55 kB / 279.8 MB, free: 10.08 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.01208, allocations: 208.9 kB / 280 MB, free: 9.809 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003651/0.01244, allocations: 271.4 kB / 280.2 MB, free: 9.477 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.01245, allocations: 4 kB / 280.2 MB, free: 9.473 MB / 266.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004158/0.01286, allocations: 265.3 kB / 280.5 MB, free: 9.207 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.01288, allocations: 8 kB / 280.5 MB, free: 9.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.01289, allocations: 4 kB / 280.5 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.0129, allocations: 4 kB / 280.5 MB, free: 9.191 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002198/0.01312, allocations: 55.92 kB / 280.6 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.629e-05/0.01314, allocations: 15.92 kB / 280.6 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.01327, allocations: 27.84 kB / 280.6 MB, free: 9.094 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.01329, allocations: 12 kB / 280.6 MB, free: 9.082 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.0001663/0.01346, allocations: 196.6 kB / 280.8 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.645e-05/0.01353, allocations: 19.91 kB / 280.8 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.542e-05/0.0136, allocations: 25.45 kB / 280.9 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.0136, allocations: 4 kB / 280.9 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.01361, allocations: 3.938 kB / 280.9 MB, free: 8.824 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.01362, allocations: 0 / 280.9 MB, free: 8.824 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005915/0.01421, allocations: 424.3 kB / 281.3 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.01421, allocations: 0 / 281.3 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001992/0.01441, allocations: 43.92 kB / 281.3 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.01441, allocations: 12.02 kB / 281.3 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.01443, allocations: 4 kB / 281.3 MB, free: 8.297 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.01443, allocations: 4 kB / 281.3 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.01443, allocations: 0 / 281.3 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005109/0.01494, allocations: 481.9 kB / 281.8 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.196e-05/0.01499, allocations: 19.84 kB / 281.8 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.01501, allocations: 4 kB / 281.8 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.01514, allocations: 4 kB / 281.8 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.808e-05/0.01518, allocations: 11.97 kB / 281.9 MB, free: 7.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.01519, allocations: 8 kB / 281.9 MB, free: 7.742 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001444/0.01533, allocations: 180.7 kB / 282 MB, free: 7.566 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01533, allocations: 0 / 282 MB, free: 7.566 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003498/0.01568, allocations: 59.89 kB / 282.1 MB, free: 7.508 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.0001284/0.01581, allocations: 99.19 kB / 282.2 MB, free: 7.402 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000312/0.01612, allocations: 165.8 kB / 282.4 MB, free: 7.238 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.01612, allocations: 0 / 282.4 MB, free: 7.238 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.75e-05/0.01622, allocations: 63.73 kB / 282.4 MB, free: 7.172 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004295/0.01665, allocations: 27.92 kB / 282.4 MB, free: 7.145 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000957/0.01761, allocations: 0.5386 MB / 283 MB, free: 6.559 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.01787, allocations: 125.2 kB / 283.1 MB, free: 6.414 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.532e-05/0.01795, allocations: 17.64 kB / 283.1 MB, free: 6.395 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.995e-05/0.018, allocations: 20.5 kB / 283.1 MB, free: 6.375 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.018, allocations: 0 / 283.1 MB, free: 6.375 MB / 266.7 MB Notification: Performance of Templates: time 0.00481/0.02281, allocations: 1.427 MB / 284.6 MB, free: 4.984 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.WhyArrows.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.2647150849225]