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.001555/0.001555, allocations: 106.9 kB / 17.06 MB, free: 6.02 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.00125/0.001251, allocations: 191 kB / 18 MB, free: 5.105 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.419/1.419, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3216, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003561/0.3252, allocations: 2.254 MB / 403 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004768/0.3257, allocations: 191.3 kB / 403.2 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.3259, allocations: 4 kB / 403.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.577e-05/0.326, allocations: 35.64 kB / 403.2 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001761/0.3262, allocations: 67.41 kB / 403.3 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001681/0.3264, allocations: 55.88 kB / 403.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002433/0.3266, allocations: 238.9 kB / 403.5 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/0.3268, allocations: 114.6 kB / 403.7 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.3269, allocations: 87.72 kB / 403.7 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.3271, allocations: 103.5 kB / 403.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.746e-05/0.3272, allocations: 20 kB / 403.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.752e-05/0.3272, allocations: 28 kB / 403.9 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.467e-05/0.3272, allocations: 43.84 kB / 403.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.3274, allocations: 111.5 kB / 404 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002866/0.3277, allocations: 256.2 kB / 404.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3277, allocations: 0 / 404.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3277, allocations: 0 / 404.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.3277, allocations: 0 / 404.3 MB, free: 5.289 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.0007518/0.3284, allocations: 0.507 MB / 404.8 MB, free: 4.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.3285, allocations: 12.03 kB / 404.8 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.932e-05/0.3286, allocations: 24.66 kB / 404.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.3288, allocations: 223.9 kB / 405.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.3288, allocations: 16.94 kB / 405.1 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.95e-05/0.3288, allocations: 20.38 kB / 405.1 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000381/0.3292, allocations: 244.8 kB / 405.3 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.3292, allocations: 192 / 405.3 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.3293, allocations: 7.938 kB / 405.3 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.3293, allocations: 11.94 kB / 405.3 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000238/0.3295, allocations: 131.9 kB / 405.5 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001108/0.3307, allocations: 0.8519 MB / 406.3 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002275/0.3309, allocations: 163.7 kB / 406.5 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.638e-05/0.331, allocations: 58.56 kB / 406.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.768e-05/0.331, allocations: 7.938 kB / 406.6 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.3311, allocations: 38.48 kB / 406.6 MB, free: 2.777 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.443e-06/0.3311, allocations: 0 / 406.6 MB, free: 2.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003853/0.3315, allocations: 161.7 kB / 406.8 MB, free: 2.613 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.3315, allocations: 122.7 kB / 406.9 MB, free: 2.469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.3317, allocations: 194.2 kB / 407.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.3317, allocations: 29.64 kB / 407.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.471e-05/0.3318, allocations: 159.9 kB / 407.2 MB, free: 2.074 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.892e-05/0.3319, allocations: 71.08 kB / 407.3 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.978e-05/0.332, allocations: 45.98 kB / 407.4 MB, free: 1.949 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3321, allocations: 326.8 kB / 407.7 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.3322, allocations: 60.53 kB / 407.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.3324, allocations: 151.6 kB / 407.9 MB, free: 1.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.3326, allocations: 221.5 kB / 408.1 MB, free: 1.102 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.3327, allocations: 0 / 408.1 MB, free: 1.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003831/0.333, allocations: 250 kB / 408.3 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.3331, allocations: 11.94 kB / 408.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.3331, allocations: 0 / 408.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.3331, allocations: 8 kB / 408.4 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000229/0.3334, allocations: 64.33 kB / 408.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.3334, allocations: 11.94 kB / 408.4 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.3335, allocations: 31.59 kB / 408.5 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.738e-05/0.3336, allocations: 16 kB / 408.5 MB, free: 0.7109 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.000117/0.3337, allocations: 145.7 kB / 408.6 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.705e-05/0.3338, allocations: 19.75 kB / 408.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.574e-05/0.3338, allocations: 25.39 kB / 408.7 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3338, allocations: 4 kB / 408.7 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.3338, allocations: 0 / 408.7 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3339, allocations: 4 kB / 408.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005232/0.3344, allocations: 416.9 kB / 409.1 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3344, allocations: 4 kB / 409.1 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002117/0.3346, allocations: 39.92 kB / 409.1 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3346, allocations: 4 kB / 409.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.3346, allocations: 0 / 409.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.3347, allocations: 4 kB / 409.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3347, allocations: 4.094 kB / 409.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003659/0.335, allocations: 386.7 kB / 409.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.138e-05/0.3351, allocations: 96.89 kB / 409.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.3351, allocations: 8 kB / 409.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.3353, allocations: 4 kB / 409.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.543e-05/0.3353, allocations: 23.86 kB / 409.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.3353, allocations: 4 kB / 409.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001171/0.3355, allocations: 144.3 kB / 409.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3355, allocations: 0 / 409.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003795/0.3359, allocations: 55.84 kB / 409.8 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.0001019/0.336, allocations: 104 kB / 410 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002671/0.3362, allocations: 139.8 kB / 410.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3362, allocations: 0 / 410.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.095e-05/0.3363, allocations: 59.84 kB / 410.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004909/0.3368, allocations: 35.39 kB / 410.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009565/0.3378, allocations: 0.5832 MB / 410.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.3381, allocations: 0.7398 MB / 411.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.654e-05/0.3382, allocations: 21.94 kB / 411.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.185e-05/0.3382, allocations: 19.44 kB / 411.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3382, allocations: 0 / 411.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of Templates: time 0.003981/0.3422, allocations: 1.562 MB / 413.1 MB, free: 11.91 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/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_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches