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.001054/0.001054, allocations: 113.8 kB / 17.74 MB, free: 5.355 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.001033/0.001033, allocations: 185.5 kB / 18.67 MB, free: 4.441 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.406/1.406, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 47.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.255, allocations: 49.44 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003216/0.2583, allocations: 2.257 MB / 403.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003979/0.2587, allocations: 191.2 kB / 403.8 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.327e-05/0.2588, allocations: 8 kB / 403.8 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.218e-05/0.2589, allocations: 35.66 kB / 403.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001434/0.2591, allocations: 59.36 kB / 403.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001627/0.2592, allocations: 59.91 kB / 404 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002336/0.2595, allocations: 234.9 kB / 404.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.2597, allocations: 114.6 kB / 404.3 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.2598, allocations: 87.72 kB / 404.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.26, allocations: 99.55 kB / 404.5 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.545e-05/0.26, allocations: 28 kB / 404.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.959e-05/0.2601, allocations: 23.94 kB / 404.6 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.939e-05/0.2601, allocations: 43.84 kB / 404.6 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.2602, allocations: 119.5 kB / 404.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002412/0.2605, allocations: 248.3 kB / 405 MB, free: 5.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2605, allocations: 4 kB / 405 MB, free: 5.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2605, allocations: 0 / 405 MB, free: 5.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.2605, allocations: 0 / 405 MB, free: 5.285 MB / 318.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.0006995/0.2612, allocations: 0.5109 MB / 405.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.2612, allocations: 8.031 kB / 405.5 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.519e-05/0.2613, allocations: 24.66 kB / 405.5 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.2615, allocations: 220 kB / 405.7 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.2615, allocations: 16.94 kB / 405.8 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.879e-05/0.2616, allocations: 20.38 kB / 405.8 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003558/0.2619, allocations: 244.8 kB / 406 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.262, allocations: 4.172 kB / 406 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.262, allocations: 11.94 kB / 406 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.262, allocations: 4 kB / 406 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002331/0.2622, allocations: 131.9 kB / 406.2 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.2633, allocations: 0.848 MB / 407 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.2635, allocations: 171.6 kB / 407.2 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.04e-05/0.2636, allocations: 66.55 kB / 407.2 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.116e-05/0.2636, allocations: 0 / 407.2 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.2637, allocations: 42.5 kB / 407.3 MB, free: 2.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.322e-06/0.2637, allocations: 0 / 407.3 MB, free: 2.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003737/0.2641, allocations: 173.6 kB / 407.4 MB, free: 2.594 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.2641, allocations: 102.8 kB / 407.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.2643, allocations: 194.2 kB / 407.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.2643, allocations: 29.64 kB / 407.8 MB, free: 2.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.879e-05/0.2644, allocations: 167.9 kB / 407.9 MB, free: 2.066 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.735e-05/0.2645, allocations: 63.09 kB / 408 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.018e-05/0.2646, allocations: 49.98 kB / 408 MB, free: 1.945 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.2647, allocations: 334.8 kB / 408.4 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.773e-05/0.2648, allocations: 44.55 kB / 408.4 MB, free: 1.566 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.2649, allocations: 155.6 kB / 408.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002516/0.2652, allocations: 217.5 kB / 408.8 MB, free: 1.105 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2652, allocations: 4 kB / 408.8 MB, free: 1.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003581/0.2656, allocations: 241.8 kB / 409 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.2656, allocations: 11.94 kB / 409 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.2656, allocations: 4 kB / 409 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.2657, allocations: 4.438 kB / 409 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.2659, allocations: 71.84 kB / 409.1 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.2659, allocations: 7.938 kB / 409.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/0.266, allocations: 31.59 kB / 409.1 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.2661, allocations: 12 kB / 409.2 MB, free: 0.7188 MB / 318.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 0.0001203/0.2662, allocations: 149.6 kB / 409.3 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-05/0.2663, allocations: 19.75 kB / 409.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.556e-05/0.2663, allocations: 21.41 kB / 409.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.2663, allocations: 4 kB / 409.3 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2664, allocations: 4 kB / 409.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2664, allocations: 3.984 kB / 409.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005131/0.2669, allocations: 424.8 kB / 409.8 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.2669, allocations: 0 / 409.8 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002065/0.2671, allocations: 36.03 kB / 409.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.2671, allocations: 4 kB / 409.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.2671, allocations: 4 kB / 409.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.2672, allocations: 4.094 kB / 409.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.309e-06/0.2672, allocations: 7.938 kB / 409.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003658/0.2675, allocations: 381.1 kB / 410.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.339e-05/0.2676, allocations: 96.86 kB / 410.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.014e-05/0.2676, allocations: 8 kB / 410.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.2678, allocations: 4 kB / 410.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.856e-05/0.2678, allocations: 19.91 kB / 410.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.2678, allocations: 4 kB / 410.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001148/0.268, allocations: 152.2 kB / 410.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.268, allocations: 0 / 410.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003549/0.2683, allocations: 51.84 kB / 410.5 MB, free: 15.23 MB / 334.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 0.00011/0.2684, allocations: 104 kB / 410.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002561/0.2687, allocations: 139.8 kB / 410.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2687, allocations: 0 / 410.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.143e-05/0.2688, allocations: 52.86 kB / 410.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004815/0.2693, allocations: 32.33 kB / 410.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009796/0.2703, allocations: 0.6161 MB / 411.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.2706, allocations: 0.732 MB / 412.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.614e-05/0.2707, allocations: 19.44 kB / 412.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2707, allocations: 0 / 412.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of Templates: time 0.004237/0.2749, allocations: 2.323 MB / 414.5 MB, free: 11.13 MB / 334.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