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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008799/0.0008798, allocations: 100.4 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008537/0.0008538, allocations: 35.94 kB / 350 MB, free: 72 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.236, allocations: 49.43 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003907/0.2399, allocations: 2.291 MB / 401.8 MB, free: 31.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005614/0.2405, allocations: 202.6 kB / 401.9 MB, free: 30.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002181/0.2408, allocations: 4 kB / 402 MB, free: 30.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.2409, allocations: 31.7 kB / 402 MB, free: 30.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002189/0.2412, allocations: 54.09 kB / 402 MB, free: 30.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001743/0.2414, allocations: 43.97 kB / 402.1 MB, free: 30.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.2416, allocations: 233.2 kB / 402.3 MB, free: 30.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.2419, allocations: 91.25 kB / 402.4 MB, free: 30.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.242, allocations: 79.72 kB / 402.5 MB, free: 30.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.2422, allocations: 99.55 kB / 402.6 MB, free: 30.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.134e-05/0.2422, allocations: 16 kB / 402.6 MB, free: 30.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.774e-05/0.2423, allocations: 12 kB / 402.6 MB, free: 30.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.894e-05/0.2424, allocations: 51.77 kB / 402.6 MB, free: 30.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.2425, allocations: 103.5 kB / 402.8 MB, free: 30.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.2427, allocations: 248.7 kB / 403 MB, free: 29.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2428, allocations: 0 / 403 MB, free: 29.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.2428, allocations: 0 / 403 MB, free: 29.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.2428, allocations: 0 / 403 MB, free: 29.83 MB / 298.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.0008095/0.2436, allocations: 0.5071 MB / 403.5 MB, free: 29.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.2437, allocations: 8.031 kB / 403.5 MB, free: 29.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.932e-05/0.2437, allocations: 24.66 kB / 403.5 MB, free: 29.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.244, allocations: 228 kB / 403.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.244, allocations: 16.94 kB / 403.8 MB, free: 28.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.954e-05/0.2441, allocations: 20.38 kB / 403.8 MB, free: 28.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000448/0.2445, allocations: 240.8 kB / 404 MB, free: 28.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.2446, allocations: 8.188 kB / 404 MB, free: 28.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.2446, allocations: 11.94 kB / 404 MB, free: 28.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.2446, allocations: 8 kB / 404.1 MB, free: 28.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003143/0.2449, allocations: 124.7 kB / 404.2 MB, free: 28.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.2462, allocations: 0.8676 MB / 405 MB, free: 27.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002927/0.2465, allocations: 155.7 kB / 405.2 MB, free: 27.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.2466, allocations: 66.5 kB / 405.3 MB, free: 27.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.2467, allocations: 0 / 405.3 MB, free: 27.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.2467, allocations: 42.5 kB / 405.3 MB, free: 27.31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.563e-06/0.2467, allocations: 4 kB / 405.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004768/0.2472, allocations: 165.7 kB / 405.5 MB, free: 27.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/0.2472, allocations: 106.8 kB / 405.6 MB, free: 27.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.2474, allocations: 198.2 kB / 405.8 MB, free: 26.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.2475, allocations: 25.7 kB / 405.8 MB, free: 26.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.209e-05/0.2475, allocations: 163.7 kB / 406 MB, free: 26.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.394e-05/0.2476, allocations: 67.08 kB / 406 MB, free: 26.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.219e-05/0.2477, allocations: 50 kB / 406.1 MB, free: 26.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.923e-05/0.2477, allocations: 334.8 kB / 406.4 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.2479, allocations: 40.55 kB / 406.4 MB, free: 26.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.248, allocations: 159.6 kB / 406.6 MB, free: 25.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002853/0.2483, allocations: 217.5 kB / 406.8 MB, free: 25.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.2483, allocations: 8 kB / 406.8 MB, free: 25.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004655/0.2488, allocations: 241.7 kB / 407 MB, free: 25.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.2489, allocations: 11.94 kB / 407.1 MB, free: 25.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.2489, allocations: 4.594 kB / 407.1 MB, free: 25.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.2489, allocations: 8 kB / 407.1 MB, free: 25.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.2492, allocations: 59.92 kB / 407.1 MB, free: 25.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.2492, allocations: 15.91 kB / 407.1 MB, free: 25.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.2495, allocations: 35.62 kB / 407.2 MB, free: 25.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.2495, allocations: 12 kB / 407.2 MB, free: 25.25 MB / 298.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.0001236/0.2496, allocations: 141.7 kB / 407.3 MB, free: 25.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.2498, allocations: 19.75 kB / 407.3 MB, free: 25.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.547e-05/0.2498, allocations: 21.41 kB / 407.4 MB, free: 25.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.2499, allocations: 12.17 kB / 407.4 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.2499, allocations: 0 / 407.4 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.2499, allocations: 3.984 kB / 407.4 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007314/0.2506, allocations: 424.8 kB / 407.8 MB, free: 24.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.2506, allocations: 0 / 407.8 MB, free: 24.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.2509, allocations: 39.92 kB / 407.8 MB, free: 24.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.2509, allocations: 3.984 kB / 407.8 MB, free: 24.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.251, allocations: 12.09 kB / 407.9 MB, free: 24.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.251, allocations: 0 / 407.9 MB, free: 24.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.251, allocations: 4 kB / 407.9 MB, free: 24.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/0.253, allocations: 1.622 MB / 409.5 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.163e-05/0.253, allocations: 96.92 kB / 409.6 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.2531, allocations: 11.97 kB / 409.6 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.2533, allocations: 8 kB / 409.6 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.2534, allocations: 11.92 kB / 409.6 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.2534, allocations: 8 kB / 409.6 MB, free: 22.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001242/0.2536, allocations: 137.5 kB / 409.7 MB, free: 22.45 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2536, allocations: 0 / 409.7 MB, free: 22.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007885/0.2544, allocations: 75.84 kB / 409.8 MB, free: 22.38 MB / 298.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.0001041/0.2545, allocations: 111.3 kB / 409.9 MB, free: 22.26 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003023/0.2548, allocations: 135.8 kB / 410.1 MB, free: 22.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2548, allocations: 0 / 410.1 MB, free: 22.13 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.2549, allocations: 59.95 kB / 410.1 MB, free: 22.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007819/0.2557, allocations: 37.92 kB / 410.2 MB, free: 22.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001444/0.2572, allocations: 0.8366 MB / 411 MB, free: 21.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000203/0.2574, allocations: 0.7404 MB / 411.7 MB, free: 20.38 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001563/0.2576, allocations: 21.94 kB / 411.8 MB, free: 20.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.673e-05/0.2576, allocations: 19.44 kB / 411.8 MB, free: 20.34 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2576, allocations: 4 kB / 411.8 MB, free: 20.34 MB / 298.7 MB Notification: Performance of Templates: time 0.005426/0.2631, allocations: 1.634 MB / 413.4 MB, free: 18.72 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches