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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009775/0.0009774, allocations: 175 kB / 16.72 MB, free: 5.086 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.143/1.143, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0006753/0.0006753, allocations: 88.98 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002772, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1782, allocations: 47.57 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.001638/0.1799, allocations: 1.866 MB / 377 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002726/0.1802, allocations: 196.8 kB / 377.2 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.944e-05/0.1802, allocations: 5.094 kB / 377.2 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.472e-05/0.1803, allocations: 26.98 kB / 377.3 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.1804, allocations: 54.64 kB / 377.3 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001179/0.1805, allocations: 34.44 kB / 377.4 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000176/0.1807, allocations: 224 kB / 377.6 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.1809, allocations: 100.2 kB / 377.7 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.321e-05/0.181, allocations: 64.33 kB / 377.7 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.1811, allocations: 93.08 kB / 377.8 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.758e-05/0.1811, allocations: 11.47 kB / 377.8 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.237e-05/0.1812, allocations: 11.62 kB / 377.9 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.56e-05/0.1812, allocations: 30.11 kB / 377.9 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.216e-05/0.1813, allocations: 121.1 kB / 378 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.1814, allocations: 197 kB / 378.2 MB, free: 43.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1814, allocations: 0 / 378.2 MB, free: 43.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1814, allocations: 0 / 378.2 MB, free: 43.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1814, allocations: 5.125 kB / 378.2 MB, free: 43.13 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.0004782/0.1819, allocations: 485.7 kB / 378.7 MB, free: 42.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.182, allocations: 9.844 kB / 378.7 MB, free: 42.67 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.382e-05/0.182, allocations: 54.42 kB / 378.7 MB, free: 42.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.033e-05/0.1821, allocations: 24.31 kB / 378.8 MB, free: 42.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.1822, allocations: 218.5 kB / 379 MB, free: 42.37 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.1822, allocations: 18.23 kB / 379 MB, free: 42.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/0.1823, allocations: 22.44 kB / 379 MB, free: 42.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003108/0.1826, allocations: 233.6 kB / 379.2 MB, free: 42.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.1826, allocations: 11.84 kB / 379.3 MB, free: 42.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.1826, allocations: 11.16 kB / 379.3 MB, free: 42.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.1826, allocations: 5.625 kB / 379.3 MB, free: 42.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.1829, allocations: 127.4 kB / 379.4 MB, free: 42.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008423/0.1837, allocations: 0.8588 MB / 380.3 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.1839, allocations: 162.2 kB / 380.4 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.523e-05/0.184, allocations: 59.09 kB / 380.5 MB, free: 41.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.184, allocations: 6.172 kB / 380.5 MB, free: 41.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.763e-05/0.184, allocations: 40.94 kB / 380.5 MB, free: 41.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.184, allocations: 0 / 380.5 MB, free: 41.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003107/0.1843, allocations: 172.2 kB / 380.7 MB, free: 41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.501e-05/0.1844, allocations: 105.8 kB / 380.8 MB, free: 40.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.1845, allocations: 202.2 kB / 381 MB, free: 40.72 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.777e-06/0.1845, allocations: 27.64 kB / 381 MB, free: 40.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.217e-05/0.1846, allocations: 162.9 kB / 381.2 MB, free: 40.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.241e-05/0.1846, allocations: 66.97 kB / 381.2 MB, free: 40.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.977e-06/0.1846, allocations: 9.469 kB / 381.2 MB, free: 40.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.134e-05/0.1847, allocations: 326.5 kB / 381.6 MB, free: 40.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.412e-05/0.1848, allocations: 45.95 kB / 381.6 MB, free: 40.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.1849, allocations: 149.7 kB / 381.8 MB, free: 39.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.1851, allocations: 223.1 kB / 382 MB, free: 39.76 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1851, allocations: 1.344 kB / 382 MB, free: 39.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000293/0.1854, allocations: 238 kB / 382.2 MB, free: 39.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.1854, allocations: 7.25 kB / 382.2 MB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1854, allocations: 7.844 kB / 382.2 MB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.1854, allocations: 5.781 kB / 382.2 MB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.1856, allocations: 63.3 kB / 382.3 MB, free: 39.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.1856, allocations: 13.23 kB / 382.3 MB, free: 39.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.1858, allocations: 32.53 kB / 382.3 MB, free: 39.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.1858, allocations: 10.66 kB / 382.3 MB, free: 39.58 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 7.631e-05/0.1859, allocations: 141.1 kB / 382.5 MB, free: 39.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.607e-05/0.1859, allocations: 25.38 kB / 382.5 MB, free: 39.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.418e-05/0.186, allocations: 29.61 kB / 382.5 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.186, allocations: 1.938 kB / 382.5 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.186, allocations: 1.719 kB / 382.5 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.186, allocations: 1.031 kB / 382.5 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003796/0.1864, allocations: 421.8 kB / 383 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1864, allocations: 1.062 kB / 383 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/0.1866, allocations: 38.41 kB / 383 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.1866, allocations: 5.375 kB / 383 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.1866, allocations: 7 kB / 383 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.1866, allocations: 2.281 kB / 383 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1866, allocations: 4.969 kB / 383 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002661/0.1869, allocations: 377.2 kB / 383.4 MB, free: 38.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.117e-05/0.1869, allocations: 95.27 kB / 383.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.187, allocations: 10.09 kB / 383.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.1871, allocations: 5.844 kB / 383.5 MB, free: 38.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.615e-05/0.1871, allocations: 14.05 kB / 383.5 MB, free: 38.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.1871, allocations: 4.312 kB / 383.5 MB, free: 38.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.658e-05/0.1872, allocations: 143.9 kB / 383.6 MB, free: 38.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1872, allocations: 0 / 383.6 MB, free: 38.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003328/0.1876, allocations: 57.25 kB / 383.7 MB, free: 38.41 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 0.0003983/0.188, allocations: 0.9064 MB / 384.6 MB, free: 37.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002046/0.1882, allocations: 141.2 kB / 384.7 MB, free: 37.51 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1882, allocations: 0 / 384.7 MB, free: 37.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.572e-05/0.1883, allocations: 51.73 kB / 384.8 MB, free: 37.49 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004217/0.1887, allocations: 33.52 kB / 384.8 MB, free: 37.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/0.1902, allocations: 1.461 MB / 386.3 MB, free: 36.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.1903, allocations: 0.7367 MB / 387 MB, free: 35.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.795e-05/0.1904, allocations: 59.14 kB / 387.1 MB, free: 35.5 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.1904, allocations: 3.938 kB / 387.1 MB, free: 35.5 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.459/2.65, allocations: 2.853 MB / 389.9 MB, free: 33.24 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > 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