Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows") translateModel(Modelica.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007744/0.0007745, allocations: 91.75 kB / 17.31 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008224/0.0008225, allocations: 182.4 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.111/1.111, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002141/0.0002142, allocations: 11.98 kB / 302.1 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06799/0.06822, allocations: 50.42 MB / 352.5 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.001809/0.07004, allocations: 1.938 MB / 354.4 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003675/0.07042, allocations: 187.3 kB / 354.6 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.073e-05/0.07052, allocations: 7.938 kB / 354.6 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.129e-05/0.07058, allocations: 27.83 kB / 354.7 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.07072, allocations: 55.55 kB / 354.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000134/0.07086, allocations: 55.89 kB / 354.8 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001782/0.07105, allocations: 219 kB / 355 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.07122, allocations: 95.23 kB / 355.1 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.188e-05/0.07131, allocations: 71.72 kB / 355.1 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.07142, allocations: 87.56 kB / 355.2 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.07146, allocations: 12 kB / 355.2 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.444e-05/0.07148, allocations: 12 kB / 355.2 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.155e-05/0.07152, allocations: 39.84 kB / 355.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.789e-05/0.07161, allocations: 133.2 kB / 355.4 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.07177, allocations: 191.6 kB / 355.6 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.07178, allocations: 0 / 355.6 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.07178, allocations: 0 / 355.6 MB, free: 344 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.07179, allocations: 0 / 355.6 MB, free: 344 kB / 286.1 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.000515/0.07231, allocations: 479.4 kB / 356.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.925e-05/0.07235, allocations: 8.031 kB / 356.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.727e-05/0.0724, allocations: 24.66 kB / 356.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001695/0.07257, allocations: 223 kB / 356.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.0726, allocations: 16.94 kB / 356.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.07264, allocations: 28.36 kB / 356.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003126/0.07295, allocations: 232.8 kB / 356.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.07297, allocations: 192 / 356.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.073, allocations: 15.94 kB / 356.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.07301, allocations: 8 kB / 356.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.07322, allocations: 127.9 kB / 356.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009179/0.07414, allocations: 0.8594 MB / 357.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001875/0.07434, allocations: 163.9 kB / 357.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.01e-05/0.07443, allocations: 62.56 kB / 357.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.07445, allocations: 0 / 357.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.07447, allocations: 42.5 kB / 357.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.032e-06/0.07448, allocations: 0 / 357.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003058/0.07479, allocations: 174.2 kB / 358 MB, free: 13.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.07484, allocations: 106.8 kB / 358.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.07499, allocations: 198.6 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.07502, allocations: 33.7 kB / 358.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.5e-05/0.0751, allocations: 155.8 kB / 358.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.92e-05/0.07514, allocations: 63.11 kB / 358.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-05/0.07518, allocations: 29.7 kB / 358.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.181e-05/0.07528, allocations: 334.8 kB / 358.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.294e-05/0.07536, allocations: 44.55 kB / 359 MB, free: 12.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.07549, allocations: 159.6 kB / 359.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000218/0.07571, allocations: 229.5 kB / 359.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.07572, allocations: 0 / 359.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002999/0.07602, allocations: 237.1 kB / 359.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.07605, allocations: 7.938 kB / 359.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.07606, allocations: 8.375 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.07608, allocations: 15.98 kB / 359.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.07627, allocations: 63.91 kB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.07629, allocations: 4 kB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.07641, allocations: 27.69 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.07643, allocations: 12 kB / 359.7 MB, free: 11.83 MB / 302.1 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 8.949e-05/0.07652, allocations: 141.7 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.452e-05/0.07659, allocations: 23.75 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.877e-05/0.07664, allocations: 21.41 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.07665, allocations: 4 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.07666, allocations: 4 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.07667, allocations: 3.984 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000428/0.07711, allocations: 420.8 kB / 360.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.07712, allocations: 0 / 360.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.07728, allocations: 35.98 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.0773, allocations: 4 kB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.07731, allocations: 8.094 kB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.07732, allocations: 11.98 kB / 360.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.07733, allocations: 3.938 kB / 360.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002989/0.07763, allocations: 369 kB / 360.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.231e-05/0.07768, allocations: 96.86 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.447e-05/0.07771, allocations: 8 kB / 360.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.07784, allocations: 0 / 360.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.816e-05/0.07787, allocations: 27.89 kB / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.07788, allocations: 4 kB / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.379e-05/0.07798, allocations: 144.3 kB / 361 MB, free: 10.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.07798, allocations: 3.938 kB / 361 MB, free: 10.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003148/0.0783, allocations: 55.84 kB / 361.1 MB, free: 10.35 MB / 302.1 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 7.734e-05/0.07839, allocations: 107.2 kB / 361.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000197/0.07859, allocations: 139.1 kB / 361.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.0786, allocations: 3.938 kB / 361.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.381e-05/0.07867, allocations: 53.05 kB / 361.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.07909, allocations: 36.17 kB / 361.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008239/0.07992, allocations: 0.7634 MB / 362.2 MB, free: 9.203 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.08016, allocations: 0.7323 MB / 362.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.08022, allocations: 23.44 kB / 362.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08022, allocations: 0 / 362.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of Templates: time 0.003143/0.08337, allocations: 2.251 MB / 365.2 MB, free: 6.172 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches