Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_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_3.2.3_cpp_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.0008734/0.0008736, allocations: 179.4 kB / 16.41 MB, free: 5.707 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.251/1.251, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007366/0.0007366, allocations: 103.6 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002855/0.0002856, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2115, allocations: 47.57 MB / 374.5 MB, free: 45.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.001939/0.2135, allocations: 1.871 MB / 376.4 MB, free: 43.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002964/0.2138, allocations: 189.5 kB / 376.6 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.001e-05/0.2139, allocations: 8.062 kB / 376.6 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.342e-05/0.214, allocations: 19.97 kB / 376.6 MB, free: 43.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.2141, allocations: 51.8 kB / 376.7 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001341/0.2143, allocations: 45.45 kB / 376.7 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002078/0.2145, allocations: 219.5 kB / 376.9 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.2147, allocations: 82.48 kB / 377 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.466e-05/0.2148, allocations: 68.84 kB / 377.1 MB, free: 43.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/0.2149, allocations: 88 kB / 377.2 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.295e-05/0.2149, allocations: 12.09 kB / 377.2 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.61e-05/0.215, allocations: 12.41 kB / 377.2 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.426e-05/0.215, allocations: 33.91 kB / 377.2 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.452e-05/0.215, allocations: 66.27 kB / 377.3 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.2152, allocations: 187.8 kB / 377.5 MB, free: 43.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.2152, allocations: 1.188 kB / 377.5 MB, free: 43.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2152, allocations: 0 / 377.5 MB, free: 43.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.2152, allocations: 7.938 kB / 377.5 MB, free: 43.19 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.0005389/0.2158, allocations: 488.9 kB / 378 MB, free: 42.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.2158, allocations: 8.969 kB / 378 MB, free: 42.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.2159, allocations: 24.16 kB / 378 MB, free: 42.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/0.216, allocations: 221.1 kB / 378.2 MB, free: 42.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.2161, allocations: 17.33 kB / 378.2 MB, free: 42.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.046e-05/0.2161, allocations: 22.78 kB / 378.2 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003283/0.2164, allocations: 231.9 kB / 378.5 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.2165, allocations: 5.062 kB / 378.5 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.2165, allocations: 6.219 kB / 378.5 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.2165, allocations: 5.656 kB / 378.5 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002149/0.2167, allocations: 136 kB / 378.6 MB, free: 42.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008946/0.2176, allocations: 0.8592 MB / 379.5 MB, free: 41.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001947/0.2178, allocations: 157.2 kB / 379.6 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.633e-05/0.2179, allocations: 63.88 kB / 379.7 MB, free: 41.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.218, allocations: 6.766 kB / 379.7 MB, free: 41.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.512e-05/0.218, allocations: 35.45 kB / 379.7 MB, free: 41.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.218, allocations: 0 / 379.7 MB, free: 41.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003721/0.2184, allocations: 170.2 kB / 379.9 MB, free: 41.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.2184, allocations: 112.1 kB / 380 MB, free: 40.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.2186, allocations: 203.7 kB / 380.2 MB, free: 40.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.2186, allocations: 25.7 kB / 380.2 MB, free: 40.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.118e-05/0.2186, allocations: 159.6 kB / 380.4 MB, free: 40.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.65e-05/0.2187, allocations: 67.19 kB / 380.5 MB, free: 40.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.378e-06/0.2187, allocations: 4.969 kB / 380.5 MB, free: 40.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.024e-05/0.2188, allocations: 330.5 kB / 380.8 MB, free: 40.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.309e-05/0.2188, allocations: 45.77 kB / 380.8 MB, free: 40.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.219, allocations: 146.3 kB / 381 MB, free: 40.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.2191, allocations: 75.77 kB / 381 MB, free: 40.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2191, allocations: 1.25 kB / 381.1 MB, free: 40.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003308/0.2194, allocations: 245.9 kB / 381.3 MB, free: 39.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.2195, allocations: 10.17 kB / 381.3 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.2195, allocations: 3.719 kB / 381.3 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.2195, allocations: 6.094 kB / 381.3 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.2197, allocations: 59.41 kB / 381.4 MB, free: 39.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.2197, allocations: 9.406 kB / 381.4 MB, free: 39.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.2199, allocations: 28.41 kB / 381.4 MB, free: 39.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.2199, allocations: 18.91 kB / 381.4 MB, free: 39.86 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 9.657e-05/0.22, allocations: 140.7 kB / 381.6 MB, free: 39.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.992e-05/0.2201, allocations: 20.09 kB / 381.6 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.713e-05/0.2201, allocations: 30.73 kB / 381.6 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.2201, allocations: 6.625 kB / 381.6 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.2201, allocations: 0 / 381.6 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2201, allocations: 9.453 kB / 381.6 MB, free: 39.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004039/0.2206, allocations: 413.5 kB / 382 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2206, allocations: 1 kB / 382 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.2208, allocations: 34.92 kB / 382.1 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.2208, allocations: 2.188 kB / 382.1 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.2208, allocations: 6.875 kB / 382.1 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/0.2208, allocations: 10.33 kB / 382.1 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2208, allocations: 5.531 kB / 382.1 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003024/0.2211, allocations: 363.1 kB / 382.4 MB, free: 38.94 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.511e-05/0.2212, allocations: 102.2 kB / 382.5 MB, free: 38.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.86e-05/0.2212, allocations: 6.75 kB / 382.6 MB, free: 38.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.2213, allocations: 5.469 kB / 382.6 MB, free: 38.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.843e-05/0.2214, allocations: 14.03 kB / 382.6 MB, free: 38.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.2214, allocations: 9.375 kB / 382.6 MB, free: 38.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.31e-05/0.2215, allocations: 139.3 kB / 382.7 MB, free: 38.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2215, allocations: 0 / 382.7 MB, free: 38.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003299/0.2218, allocations: 57.31 kB / 382.8 MB, free: 38.69 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 9.057e-05/0.2219, allocations: 106.3 kB / 382.9 MB, free: 38.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000226/0.2222, allocations: 137 kB / 383 MB, free: 38.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2222, allocations: 1.094 kB / 383 MB, free: 38.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.29e-05/0.2223, allocations: 56.45 kB / 383.1 MB, free: 38.51 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.2227, allocations: 28.91 kB / 383.1 MB, free: 38.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008442/0.2236, allocations: 0.7527 MB / 383.8 MB, free: 37.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001568/0.2238, allocations: 0.7322 MB / 384.6 MB, free: 37.13 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.34e-05/0.2238, allocations: 23.94 kB / 384.6 MB, free: 37.12 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2238, allocations: 0 / 384.6 MB, free: 37.12 MB / 298.7 MB Notification: Performance of Templates: time 0.003624/0.2275, allocations: 2.256 MB / 386.9 MB, free: 35.96 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches