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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009522/0.0009522, allocations: 202.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 226.5 MB / 244.7 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006175/0.0006175, allocations: 106.5 kB / 296.7 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002529/0.000253, allocations: 4 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.1835, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.001609/0.1852, allocations: 1.88 MB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002629/0.1854, allocations: 203.2 kB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.771e-05/0.1855, allocations: 8 kB / 410.2 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.136e-05/0.1856, allocations: 19.84 kB / 410.2 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.1857, allocations: 52.11 kB / 410.3 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001149/0.1858, allocations: 40.8 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.186, allocations: 219 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.1861, allocations: 90.7 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.569e-05/0.1862, allocations: 80.8 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.233e-05/0.1863, allocations: 83.62 kB / 410.8 MB, free: 25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.1863, allocations: 12 kB / 410.8 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.865e-05/0.1864, allocations: 12.59 kB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.618e-05/0.1864, allocations: 37.09 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.409e-05/0.1865, allocations: 125.2 kB / 411 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.1866, allocations: 188.7 kB / 411.2 MB, free: 24.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1866, allocations: 0 / 411.2 MB, free: 24.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1866, allocations: 1.188 kB / 411.2 MB, free: 24.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1866, allocations: 0 / 411.2 MB, free: 24.63 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.0004772/0.1871, allocations: 479 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.1872, allocations: 12.02 kB / 411.6 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.229e-05/0.1872, allocations: 58.73 kB / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.554e-05/0.1873, allocations: 24.66 kB / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.1874, allocations: 224.6 kB / 411.9 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.1874, allocations: 16.94 kB / 412 MB, free: 23.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.1875, allocations: 24.38 kB / 412 MB, free: 23.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002855/0.1877, allocations: 232.8 kB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.1878, allocations: 7.922 kB / 412.2 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.1878, allocations: 8 kB / 412.2 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1878, allocations: 8 kB / 412.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.188, allocations: 127.9 kB / 412.4 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008018/0.1888, allocations: 0.8637 MB / 413.2 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.189, allocations: 155.7 kB / 413.4 MB, free: 22.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.999e-05/0.1891, allocations: 58.56 kB / 413.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.134e-05/0.1891, allocations: 7.938 kB / 413.4 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.1891, allocations: 46.44 kB / 413.5 MB, free: 22.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.293e-06/0.1891, allocations: 4 kB / 413.5 MB, free: 22.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002923/0.1894, allocations: 161.7 kB / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.369e-05/0.1894, allocations: 106.8 kB / 413.7 MB, free: 21.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.1896, allocations: 191.1 kB / 413.9 MB, free: 21.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.1896, allocations: 33.7 kB / 414 MB, free: 21.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/0.1896, allocations: 159.8 kB / 414.1 MB, free: 21.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.1897, allocations: 59.11 kB / 414.2 MB, free: 21.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-06/0.1897, allocations: 12 kB / 414.2 MB, free: 21.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.439e-05/0.1897, allocations: 330.8 kB / 414.5 MB, free: 21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.914e-05/0.1898, allocations: 44.55 kB / 414.6 MB, free: 20.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.713e-05/0.1899, allocations: 159.6 kB / 414.7 MB, free: 20.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001795/0.1901, allocations: 218.2 kB / 414.9 MB, free: 20.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1901, allocations: 4 kB / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000264/0.1904, allocations: 248.9 kB / 415.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.1904, allocations: 4.438 kB / 415.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1904, allocations: 11.98 kB / 415.2 MB, free: 20.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.1904, allocations: 8 kB / 415.2 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.1906, allocations: 55.92 kB / 415.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.515e-06/0.1906, allocations: 4 kB / 415.3 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.1907, allocations: 27.69 kB / 415.3 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.1907, allocations: 16 kB / 415.3 MB, free: 20.11 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.412e-05/0.1908, allocations: 145.6 kB / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.26e-05/0.1909, allocations: 23.75 kB / 415.5 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.324e-05/0.1909, allocations: 25.41 kB / 415.5 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.191, allocations: 0 / 415.5 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.191, allocations: 4 kB / 415.5 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.191, allocations: 3.984 kB / 415.5 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003761/0.1913, allocations: 416.8 kB / 415.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.1914, allocations: 0 / 415.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.1915, allocations: 44.02 kB / 415.9 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.1915, allocations: 8 kB / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.1916, allocations: 3.984 kB / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1916, allocations: 4 kB / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.1916, allocations: 4 kB / 416 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002571/0.1918, allocations: 383.8 kB / 416.3 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.423e-05/0.1919, allocations: 96.95 kB / 416.4 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.1919, allocations: 11.98 kB / 416.4 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.192, allocations: 0 / 416.4 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.66e-05/0.1921, allocations: 15.97 kB / 416.5 MB, free: 18.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.1921, allocations: 11.98 kB / 416.5 MB, free: 18.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.332e-05/0.1922, allocations: 136.3 kB / 416.6 MB, free: 18.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1922, allocations: 4 kB / 416.6 MB, free: 18.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003125/0.1925, allocations: 51.91 kB / 416.7 MB, free: 18.63 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.000413/0.1929, allocations: 0.9041 MB / 417.6 MB, free: 17.69 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001974/0.1931, allocations: 143.7 kB / 417.7 MB, free: 17.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.1932, allocations: 4 kB / 417.7 MB, free: 17.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.929e-05/0.1932, allocations: 56.92 kB / 417.8 MB, free: 17.49 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.1937, allocations: 31.86 kB / 417.8 MB, free: 17.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.1951, allocations: 1.451 MB / 419.2 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.1952, allocations: 0.7359 MB / 420 MB, free: 15.13 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.842e-05/0.1953, allocations: 55.42 kB / 420 MB, free: 15.07 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.1953, allocations: 4 kB / 420 MB, free: 15.07 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.434/2.63, allocations: 2.856 MB / 422.9 MB, free: 12.21 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins1/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