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.002768/0.002773, allocations: 189.5 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.583/3.583, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001955/0.001955, allocations: 94.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000688/0.0006884, allocations: 8 kB / 327 MB, free: 15.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1639, allocations: 47.59 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.005256/0.1692, allocations: 1.787 MB / 376.3 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.1705, allocations: 211.3 kB / 376.5 MB, free: 13.43 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002333/0.1708, allocations: 4 kB / 376.5 MB, free: 13.43 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.1709, allocations: 27.77 kB / 376.6 MB, free: 13.4 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003964/0.1713, allocations: 63.86 kB / 376.6 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.1717, allocations: 39.95 kB / 376.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005378/0.1723, allocations: 167.6 kB / 376.8 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003755/0.1727, allocations: 78 kB / 376.9 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000235/0.1729, allocations: 79.7 kB / 377 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002853/0.1733, allocations: 83.62 kB / 377.1 MB, free: 12.9 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.367e-05/0.1733, allocations: 12 kB / 377.1 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.758e-05/0.1735, allocations: 15.94 kB / 377.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.1736, allocations: 31.84 kB / 377.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.1737, allocations: 65.64 kB / 377.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005113/0.1743, allocations: 191.6 kB / 377.4 MB, free: 12.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1743, allocations: 4 kB / 377.4 MB, free: 12.58 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1743, allocations: 4 kB / 377.4 MB, free: 12.58 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.1743, allocations: 0 / 377.4 MB, free: 12.58 MB / 282.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.001456/0.1758, allocations: 479.2 kB / 377.9 MB, free: 12.06 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.353e-05/0.1759, allocations: 8.031 kB / 377.9 MB, free: 12.05 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.1761, allocations: 23.72 kB / 377.9 MB, free: 12.03 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/0.1765, allocations: 218.7 kB / 378.1 MB, free: 11.78 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.147e-05/0.1766, allocations: 20.52 kB / 378.1 MB, free: 11.76 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.591e-05/0.1767, allocations: 24 kB / 378.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009398/0.1777, allocations: 224.3 kB / 378.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.847e-05/0.1778, allocations: 4 kB / 378.4 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.261e-05/0.1779, allocations: 12 kB / 378.4 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.969e-05/0.1779, allocations: 8 kB / 378.4 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006963/0.1787, allocations: 128.6 kB / 378.5 MB, free: 11.35 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002943/0.1816, allocations: 0.8634 MB / 379.4 MB, free: 10.42 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005797/0.1823, allocations: 155.7 kB / 379.5 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.1824, allocations: 0 / 379.5 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.709e-05/0.1824, allocations: 42.52 kB / 379.6 MB, free: 10.19 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 3.346e-06/0.1825, allocations: 0 / 379.6 MB, free: 10.19 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009256/0.1834, allocations: 169.6 kB / 379.7 MB, free: 10.02 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.1835, allocations: 106.8 kB / 379.8 MB, free: 9.891 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004643/0.184, allocations: 202.4 kB / 380 MB, free: 9.684 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.254e-05/0.1841, allocations: 29.7 kB / 380.1 MB, free: 9.648 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.1844, allocations: 214.3 kB / 380.3 MB, free: 9.434 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/0.1845, allocations: 74.98 kB / 380.3 MB, free: 9.359 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/0.1846, allocations: 4 kB / 380.3 MB, free: 9.355 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.1848, allocations: 322.8 kB / 380.7 MB, free: 9.031 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002537/0.1851, allocations: 48.48 kB / 380.7 MB, free: 8.98 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003818/0.1855, allocations: 150.8 kB / 380.9 MB, free: 8.785 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003398/0.1859, allocations: 72.56 kB / 380.9 MB, free: 8.715 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.1859, allocations: 0 / 380.9 MB, free: 8.715 MB / 282.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001025/0.187, allocations: 245.1 kB / 381.2 MB, free: 8.469 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.103e-05/0.187, allocations: 7.938 kB / 381.2 MB, free: 8.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/0.1871, allocations: 7.953 kB / 381.2 MB, free: 8.453 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.695e-05/0.1871, allocations: 8 kB / 381.2 MB, free: 8.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006755/0.1878, allocations: 52.36 kB / 381.2 MB, free: 8.395 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.205e-05/0.1879, allocations: 15.98 kB / 381.3 MB, free: 8.379 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004136/0.1883, allocations: 27.69 kB / 381.3 MB, free: 8.352 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-05/0.1884, allocations: 16 kB / 381.3 MB, free: 8.336 MB / 282.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 0.0003198/0.1888, allocations: 137.7 kB / 381.4 MB, free: 8.191 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001993/0.189, allocations: 23.81 kB / 381.5 MB, free: 8.168 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001254/0.1891, allocations: 21.39 kB / 381.5 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.069e-05/0.1892, allocations: 3.953 kB / 381.5 MB, free: 8.141 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.1892, allocations: 4 kB / 381.5 MB, free: 8.137 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.1892, allocations: 4 kB / 381.5 MB, free: 8.133 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.1907, allocations: 412.9 kB / 381.9 MB, free: 7.664 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/0.1908, allocations: 3.953 kB / 381.9 MB, free: 7.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006471/0.1915, allocations: 39.97 kB / 381.9 MB, free: 7.621 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-05/0.1915, allocations: 0 / 381.9 MB, free: 7.621 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-05/0.1916, allocations: 11.94 kB / 382 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.168e-05/0.1916, allocations: 4 kB / 382 MB, free: 7.605 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.1916, allocations: 4.094 kB / 382 MB, free: 7.602 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.1927, allocations: 412.3 kB / 382.4 MB, free: 7.145 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.1929, allocations: 112.7 kB / 382.5 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.951e-05/0.193, allocations: 8 kB / 382.5 MB, free: 7.008 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004016/0.1934, allocations: 4 kB / 382.5 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.705e-05/0.1936, allocations: 11.94 kB / 382.5 MB, free: 6.992 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-05/0.1936, allocations: 8 kB / 382.5 MB, free: 6.984 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003272/0.194, allocations: 144.3 kB / 382.6 MB, free: 6.844 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.194, allocations: 4 kB / 382.6 MB, free: 6.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00106/0.1951, allocations: 51.94 kB / 382.7 MB, free: 6.789 MB / 282.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 0.0002934/0.1955, allocations: 95.25 kB / 382.8 MB, free: 6.688 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008163/0.1963, allocations: 139.6 kB / 382.9 MB, free: 6.551 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/0.1964, allocations: 0.875 kB / 382.9 MB, free: 6.551 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002623/0.1967, allocations: 63.95 kB / 383 MB, free: 6.488 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009411/0.1976, allocations: 31.91 kB / 383 MB, free: 6.461 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002954/0.2007, allocations: 0.74 MB / 383.8 MB, free: 5.672 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006879/0.2014, allocations: 0.744 MB / 384.5 MB, free: 4.902 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.2017, allocations: 19.44 kB / 384.5 MB, free: 4.887 MB / 282.7 MB Notification: Performance of SimCode: time 1.943e-06/0.2017, allocations: 0 / 384.5 MB, free: 4.887 MB / 282.7 MB Notification: Performance of Templates: time 0.01113/0.2129, allocations: 2.207 MB / 386.7 MB, free: 2.676 MB / 282.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/jenkins1/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