Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001387/0.001387, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2697, allocations: 50.54 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003028/0.2728, allocations: 2.254 MB / 411.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003626/0.2732, allocations: 191.3 kB / 411.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.585e-05/0.2733, allocations: 8 kB / 411.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.959e-05/0.2734, allocations: 35.64 kB / 411.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001494/0.2735, allocations: 63.36 kB / 411.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001566/0.2737, allocations: 59.92 kB / 411.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002082/0.2739, allocations: 231 kB / 412.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.2741, allocations: 110.5 kB / 412.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.2742, allocations: 95.64 kB / 412.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.2744, allocations: 99.55 kB / 412.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.227e-05/0.2744, allocations: 24 kB / 412.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.084e-05/0.2744, allocations: 20 kB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.071e-05/0.2745, allocations: 51.83 kB / 412.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.437e-05/0.2746, allocations: 115.5 kB / 412.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.2748, allocations: 252.2 kB / 412.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2749, allocations: 0 / 412.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2749, allocations: 4 kB / 412.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.2749, allocations: 0 / 412.8 MB, free: 13.99 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0006703/0.2755, allocations: 0.507 MB / 413.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.2756, allocations: 12.03 kB / 413.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.079e-05/0.2756, allocations: 28.66 kB / 413.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.2759, allocations: 220 kB / 413.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.2759, allocations: 16.94 kB / 413.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.2759, allocations: 24.38 kB / 413.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003537/0.2763, allocations: 232.8 kB / 413.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.2763, allocations: 192 / 413.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.406e-05/0.2763, allocations: 19.88 kB / 413.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.2764, allocations: 8 kB / 413.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002372/0.2766, allocations: 139.1 kB / 414 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.2777, allocations: 0.8597 MB / 414.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002143/0.2779, allocations: 151.7 kB / 415 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.961e-05/0.278, allocations: 62.56 kB / 415.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.2781, allocations: 4 kB / 415.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.2781, allocations: 46.44 kB / 415.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 3.125e-06/0.2781, allocations: 0 / 415.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003871/0.2785, allocations: 173.6 kB / 415.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.2786, allocations: 102.8 kB / 415.4 MB, free: 11.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.2788, allocations: 195.2 kB / 415.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.2788, allocations: 29.7 kB / 415.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.2789, allocations: 167.7 kB / 415.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.482e-05/0.279, allocations: 63.09 kB / 415.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.325e-05/0.2791, allocations: 53.98 kB / 415.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.2792, allocations: 330.8 kB / 416.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.504e-05/0.2793, allocations: 44.55 kB / 416.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.2794, allocations: 152.2 kB / 416.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002515/0.2797, allocations: 218.2 kB / 416.6 MB, free: 9.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.2797, allocations: 4 kB / 416.6 MB, free: 9.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003451/0.2801, allocations: 253.2 kB / 416.9 MB, free: 9.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.2801, allocations: 11.94 kB / 416.9 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.2801, allocations: 4 kB / 416.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.2801, allocations: 4 kB / 416.9 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.2803, allocations: 63.91 kB / 417 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.2804, allocations: 4 kB / 417 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.2805, allocations: 31.69 kB / 417 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.2805, allocations: 8 kB / 417 MB, free: 9.418 MB / 334.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.0001135/0.2806, allocations: 145.9 kB / 417.1 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.679e-05/0.2807, allocations: 23.73 kB / 417.2 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.399e-05/0.2808, allocations: 21.41 kB / 417.2 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2808, allocations: 4 kB / 417.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2808, allocations: 0 / 417.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2808, allocations: 0 / 417.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005704/0.2814, allocations: 432.8 kB / 417.6 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2814, allocations: 0 / 417.6 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.2816, allocations: 39.92 kB / 417.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2816, allocations: 0 / 417.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.2816, allocations: 8 kB / 417.7 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.2816, allocations: 4 kB / 417.7 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.2816, allocations: 7.938 kB / 417.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003628/0.282, allocations: 387.6 kB / 418.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.215e-05/0.2821, allocations: 96.86 kB / 418.2 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.2821, allocations: 4 kB / 418.2 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.2822, allocations: 11.94 kB / 418.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.73e-05/0.2823, allocations: 11.97 kB / 418.2 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.2823, allocations: 4 kB / 418.2 MB, free: 8.125 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001116/0.2824, allocations: 147.2 kB / 418.3 MB, free: 7.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2824, allocations: 0 / 418.3 MB, free: 7.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003452/0.2828, allocations: 47.91 kB / 418.4 MB, free: 7.934 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.0001702/0.2829, allocations: 107.1 kB / 418.5 MB, free: 7.816 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002611/0.2832, allocations: 140.6 kB / 418.6 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2832, allocations: 4.062 kB / 418.6 MB, free: 7.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.979e-05/0.2833, allocations: 51.92 kB / 418.7 MB, free: 7.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000482/0.2838, allocations: 26.22 kB / 418.7 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009296/0.2847, allocations: 0.5992 MB / 419.3 MB, free: 6.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.285, allocations: 0.7359 MB / 420 MB, free: 6.207 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.391e-05/0.2851, allocations: 17.95 kB / 420 MB, free: 6.188 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.304e-05/0.2852, allocations: 19.44 kB / 420.1 MB, free: 6.168 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2852, allocations: 0 / 420.1 MB, free: 6.168 MB / 334.1 MB Notification: Performance of Templates: time 0.004491/0.2897, allocations: 1.575 MB / 421.6 MB, free: 4.605 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches