Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001544/0.001544, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.203/1.203, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008799/0.0008799, allocations: 102 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007598/0.0007598, allocations: 43.94 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.2005, allocations: 46.61 MB / 373.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.002806/0.2034, allocations: 2.299 MB / 376.1 MB, free: 44.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002729/0.2037, allocations: 197.6 kB / 376.3 MB, free: 43.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.377e-05/0.2038, allocations: 4.75 kB / 376.3 MB, free: 43.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.935e-05/0.2038, allocations: 31.3 kB / 376.3 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.204, allocations: 50.75 kB / 376.4 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001249/0.2041, allocations: 47.03 kB / 376.4 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001723/0.2043, allocations: 223.3 kB / 376.6 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2044, allocations: 92.66 kB / 376.7 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.791e-05/0.2045, allocations: 86.56 kB / 376.8 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.2046, allocations: 97.02 kB / 376.9 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.266e-05/0.2047, allocations: 15.03 kB / 376.9 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.502e-05/0.2047, allocations: 15.19 kB / 376.9 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.076e-05/0.2048, allocations: 46.58 kB / 377 MB, free: 43.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.358e-05/0.2049, allocations: 109 kB / 377.1 MB, free: 43.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001755/0.205, allocations: 254.7 kB / 377.3 MB, free: 43.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.205, allocations: 5.031 kB / 377.4 MB, free: 43.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.2051, allocations: 4 kB / 377.4 MB, free: 43.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.289e-06/0.2051, allocations: 0 / 377.4 MB, free: 43.17 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.0005509/0.2056, allocations: 0.4985 MB / 377.9 MB, free: 42.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2057, allocations: 10.03 kB / 377.9 MB, free: 42.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.387e-05/0.2057, allocations: 28.44 kB / 377.9 MB, free: 42.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.2059, allocations: 218.4 kB / 378.1 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.2059, allocations: 17.53 kB / 378.1 MB, free: 42.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.877e-05/0.2059, allocations: 23.06 kB / 378.1 MB, free: 42.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002844/0.2062, allocations: 227.4 kB / 378.4 MB, free: 42.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.2062, allocations: 4.125 kB / 378.4 MB, free: 42.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.2063, allocations: 14.25 kB / 378.4 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.2063, allocations: 9.906 kB / 378.4 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/0.2065, allocations: 133.7 kB / 378.5 MB, free: 42.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008114/0.2073, allocations: 0.854 MB / 379.4 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001787/0.2075, allocations: 158.4 kB / 379.5 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.806e-05/0.2076, allocations: 63.92 kB / 379.6 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.732e-05/0.2076, allocations: 2.469 kB / 379.6 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.288e-05/0.2076, allocations: 43.77 kB / 379.6 MB, free: 41.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.2076, allocations: 0 / 379.6 MB, free: 41.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002943/0.2079, allocations: 170.4 kB / 379.8 MB, free: 41.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.139e-05/0.2079, allocations: 109 kB / 379.9 MB, free: 40.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.2081, allocations: 195.4 kB / 380.1 MB, free: 40.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.2081, allocations: 30.73 kB / 380.1 MB, free: 40.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.606e-05/0.2082, allocations: 159.9 kB / 380.3 MB, free: 40.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.227e-05/0.2082, allocations: 70.11 kB / 380.4 MB, free: 40.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.959e-05/0.2083, allocations: 52.77 kB / 380.4 MB, free: 40.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.721e-05/0.2083, allocations: 326.3 kB / 380.7 MB, free: 40.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.717e-05/0.2084, allocations: 55.06 kB / 380.8 MB, free: 40.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.2085, allocations: 153.6 kB / 380.9 MB, free: 40.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.2087, allocations: 229.4 kB / 381.2 MB, free: 39.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.2087, allocations: 1.125 kB / 381.2 MB, free: 39.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000287/0.209, allocations: 243.6 kB / 381.4 MB, free: 39.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.209, allocations: 15.19 kB / 381.4 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.2091, allocations: 3.812 kB / 381.4 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.2091, allocations: 4.688 kB / 381.4 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.2093, allocations: 64.25 kB / 381.5 MB, free: 39.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.2093, allocations: 13.28 kB / 381.5 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.2094, allocations: 31.62 kB / 381.5 MB, free: 39.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.2094, allocations: 15.28 kB / 381.5 MB, free: 39.61 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 7.171e-05/0.2095, allocations: 136.1 kB / 381.7 MB, free: 39.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.471e-05/0.2096, allocations: 21 kB / 381.7 MB, free: 39.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.697e-05/0.2096, allocations: 26.14 kB / 381.7 MB, free: 39.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.2096, allocations: 2.188 kB / 381.7 MB, free: 39.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2097, allocations: 1.156 kB / 381.7 MB, free: 39.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.2097, allocations: 5.219 kB / 381.7 MB, free: 39.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003786/0.21, allocations: 421.5 kB / 382.1 MB, free: 39.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.2101, allocations: 1.188 kB / 382.1 MB, free: 39.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.2102, allocations: 38.73 kB / 382.2 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.2102, allocations: 2.312 kB / 382.2 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.2103, allocations: 6.25 kB / 382.2 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2103, allocations: 2.062 kB / 382.2 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2103, allocations: 5.156 kB / 382.2 MB, free: 39.01 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.2116, allocations: 1.627 MB / 383.8 MB, free: 37.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.2116, allocations: 98.92 kB / 383.9 MB, free: 37.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.046e-05/0.2116, allocations: 10.81 kB / 383.9 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.2118, allocations: 1.531 kB / 383.9 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.973e-05/0.2118, allocations: 21.81 kB / 384 MB, free: 37.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.2118, allocations: 5.312 kB / 384 MB, free: 37.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.971e-05/0.2119, allocations: 144.8 kB / 384.1 MB, free: 37.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2119, allocations: 0 / 384.1 MB, free: 37.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004058/0.2123, allocations: 66.84 kB / 384.2 MB, free: 37.28 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 7.878e-05/0.2124, allocations: 107.2 kB / 384.3 MB, free: 37.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002044/0.2126, allocations: 144.9 kB / 384.4 MB, free: 37.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2126, allocations: 1.25 kB / 384.4 MB, free: 37.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.396e-05/0.2127, allocations: 56.42 kB / 384.5 MB, free: 37.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.2131, allocations: 29.36 kB / 384.5 MB, free: 37.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008813/0.214, allocations: 0.8393 MB / 385.3 MB, free: 36.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001613/0.2142, allocations: 0.7401 MB / 386.1 MB, free: 35.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.886e-05/0.2143, allocations: 23.47 kB / 386.1 MB, free: 35.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.36e-05/0.2143, allocations: 19.25 kB / 386.1 MB, free: 35.61 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2143, allocations: 0 / 386.1 MB, free: 35.61 MB / 298.7 MB Notification: Performance of Templates: time 0.003831/0.2181, allocations: 1.645 MB / 387.8 MB, free: 34.8 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches