Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001115/0.001114, allocations: 197.2 kB / 17.05 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 226.6 MB / 244.3 MB, free: 6.566 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000743/0.000743, allocations: 106.3 kB / 296.4 MB, free: 6.781 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001952/0.0001953, allocations: 8 kB / 356.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2266, allocations: 51.3 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.001885/0.2286, allocations: 1.88 MB / 409.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004716/0.2291, allocations: 187.3 kB / 409.6 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000136/0.2292, allocations: 8 kB / 409.6 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.207e-05/0.2293, allocations: 27.83 kB / 409.6 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.2295, allocations: 56.41 kB / 409.6 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00014/0.2296, allocations: 37.25 kB / 409.7 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.2298, allocations: 223 kB / 409.9 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.23, allocations: 81.83 kB / 410 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.169e-05/0.2301, allocations: 75.72 kB / 410.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.999e-05/0.2302, allocations: 83.62 kB / 410.1 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.2302, allocations: 12.66 kB / 410.2 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.073e-05/0.2302, allocations: 12 kB / 410.2 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.481e-05/0.2303, allocations: 40.89 kB / 410.2 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.034e-05/0.2303, allocations: 65.58 kB / 410.3 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.2305, allocations: 184.5 kB / 410.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2305, allocations: 1.25 kB / 410.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2305, allocations: 0 / 410.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.2305, allocations: 0 / 410.4 MB, free: 24.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.0005246/0.231, allocations: 486.4 kB / 410.9 MB, free: 24.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.2311, allocations: 8.031 kB / 410.9 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.539e-05/0.2312, allocations: 27.72 kB / 411 MB, free: 24.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/0.2313, allocations: 214.8 kB / 411.2 MB, free: 24.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.2313, allocations: 16.56 kB / 411.2 MB, free: 24.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.2314, allocations: 27.94 kB / 411.2 MB, free: 23.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.2317, allocations: 228.3 kB / 411.4 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.2317, allocations: 0 / 411.4 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.2317, allocations: 8 kB / 411.4 MB, free: 23.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.2318, allocations: 12 kB / 411.5 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.232, allocations: 131.8 kB / 411.6 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000835/0.2328, allocations: 0.8675 MB / 412.4 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001705/0.233, allocations: 159.9 kB / 412.6 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.912e-05/0.2331, allocations: 58.56 kB / 412.7 MB, free: 22.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.2331, allocations: 4 kB / 412.7 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.2331, allocations: 38.5 kB / 412.7 MB, free: 22.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.343e-06/0.2331, allocations: 7.938 kB / 412.7 MB, free: 22.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002958/0.2334, allocations: 165.5 kB / 412.9 MB, free: 22.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.2334, allocations: 110.8 kB / 413 MB, free: 22.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.2336, allocations: 191.2 kB / 413.2 MB, free: 21.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.2336, allocations: 37.64 kB / 413.2 MB, free: 21.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.217e-05/0.2337, allocations: 155.7 kB / 413.4 MB, free: 21.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.446e-05/0.2337, allocations: 63.09 kB / 413.4 MB, free: 21.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.945e-06/0.2337, allocations: 8 kB / 413.4 MB, free: 21.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.719e-05/0.2338, allocations: 326.8 kB / 413.7 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.122e-05/0.2338, allocations: 48.55 kB / 413.8 MB, free: 21.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.565e-05/0.2339, allocations: 155.6 kB / 413.9 MB, free: 21.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.395e-05/0.234, allocations: 67.94 kB / 414 MB, free: 20.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2341, allocations: 4 kB / 414 MB, free: 20.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002723/0.2343, allocations: 237.8 kB / 414.2 MB, free: 20.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.2343, allocations: 8 kB / 414.3 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2344, allocations: 4.594 kB / 414.3 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.2344, allocations: 11.95 kB / 414.3 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.2346, allocations: 63.91 kB / 414.3 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.2346, allocations: 11.92 kB / 414.3 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.2347, allocations: 31.69 kB / 414.4 MB, free: 20.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.2347, allocations: 8 kB / 414.4 MB, free: 20.57 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.103e-05/0.2348, allocations: 137.8 kB / 414.5 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.408e-05/0.2349, allocations: 15.81 kB / 414.5 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.522e-05/0.2349, allocations: 25.39 kB / 414.6 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.235, allocations: 8 kB / 414.6 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.235, allocations: 3.953 kB / 414.6 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.235, allocations: 4 kB / 414.6 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004289/0.2354, allocations: 420.9 kB / 415 MB, free: 19.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.2354, allocations: 0 / 415 MB, free: 19.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.2356, allocations: 39.92 kB / 415 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.2356, allocations: 3.953 kB / 415 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.2356, allocations: 12.09 kB / 415 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.666e-06/0.2356, allocations: 4 kB / 415 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2356, allocations: 4 kB / 415 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002764/0.2359, allocations: 369.3 kB / 415.4 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.942e-05/0.236, allocations: 104.9 kB / 415.5 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.236, allocations: 7.953 kB / 415.5 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.2361, allocations: 4 kB / 415.5 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.021e-05/0.2362, allocations: 11.98 kB / 415.5 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.333e-06/0.2362, allocations: 4 kB / 415.5 MB, free: 19.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.906e-05/0.2363, allocations: 148.2 kB / 415.7 MB, free: 19.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2363, allocations: 3.938 kB / 415.7 MB, free: 19.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002999/0.2366, allocations: 47.91 kB / 415.7 MB, free: 19.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.448e-05/0.2367, allocations: 107.2 kB / 415.8 MB, free: 18.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002021/0.2369, allocations: 139.8 kB / 416 MB, free: 18.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2369, allocations: 4 kB / 416 MB, free: 18.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.871e-05/0.2369, allocations: 48.8 kB / 416 MB, free: 18.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000408/0.2374, allocations: 36.11 kB / 416.1 MB, free: 18.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007897/0.2382, allocations: 0.7543 MB / 416.8 MB, free: 17.96 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001415/0.2383, allocations: 0.7284 MB / 417.5 MB, free: 17.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.893e-05/0.2384, allocations: 23.44 kB / 417.6 MB, free: 17.19 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2384, allocations: 0 / 417.6 MB, free: 17.19 MB / 298.7 MB Notification: Performance of Templates: time 0.003453/0.2418, allocations: 2.246 MB / 419.8 MB, free: 14.95 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches