Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009798/0.0009796, allocations: 193.2 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, 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.0007529/0.000753, allocations: 96.88 kB / 296.7 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002033/0.0002033, allocations: 8 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1777, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003016/0.1807, allocations: 3.92 MB / 412.1 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.1821, allocations: 1.305 MB / 413.4 MB, free: 22.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002657/0.1824, allocations: 19.88 kB / 413.4 MB, free: 22.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002211/0.1826, allocations: 128.1 kB / 413.5 MB, free: 22.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002031/0.1828, allocations: 132.6 kB / 413.6 MB, free: 22.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004277/0.1833, allocations: 240.4 kB / 413.9 MB, free: 21.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005343/0.1838, allocations: 0.8845 MB / 414.8 MB, free: 21.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003699/0.1842, allocations: 377.4 kB / 415.1 MB, free: 20.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.1844, allocations: 250.7 kB / 415.4 MB, free: 20.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.1846, allocations: 270.3 kB / 415.6 MB, free: 20.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.71e-05/0.1847, allocations: 28 kB / 415.7 MB, free: 20.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.1848, allocations: 71.92 kB / 415.7 MB, free: 20.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.888e-05/0.1849, allocations: 115.4 kB / 415.8 MB, free: 19.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.1851, allocations: 383.5 kB / 416.2 MB, free: 19.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.1855, allocations: 0.757 MB / 417 MB, free: 18.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.768e-06/0.1855, allocations: 0 / 417 MB, free: 18.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1855, allocations: 0 / 417 MB, free: 18.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.1855, allocations: 0 / 417 MB, free: 18.8 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.000988/0.1865, allocations: 0.9782 MB / 417.9 MB, free: 17.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.1866, allocations: 12.03 kB / 418 MB, free: 17.76 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.578e-05/0.1867, allocations: 126.9 kB / 418.1 MB, free: 17.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001858/0.1869, allocations: 118.7 kB / 418.2 MB, free: 17.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005531/0.1874, allocations: 0.5955 MB / 418.8 MB, free: 16.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.1875, allocations: 62 kB / 418.9 MB, free: 16.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.394e-05/0.1876, allocations: 83.98 kB / 418.9 MB, free: 16.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009405/0.1885, allocations: 0.8325 MB / 419.8 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.1885, allocations: 15.83 kB / 419.8 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.44e-05/0.1886, allocations: 36 kB / 419.8 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.1886, allocations: 27.98 kB / 419.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006788/0.1893, allocations: 467.3 kB / 420.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002347/0.1916, allocations: 4.412 MB / 424.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.1921, allocations: 299.3 kB / 425 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.1923, allocations: 141.5 kB / 425.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000135/0.1924, allocations: 174.6 kB / 425.3 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.492e-05/0.1925, allocations: 38.94 kB / 425.4 MB, free: 9.949 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 1.983e-06/0.1925, allocations: 0 / 425.4 MB, free: 9.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.002471/0.1949, allocations: 1.737 MB / 427.1 MB, free: 8.117 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.136e-05/0.195, allocations: 67.91 kB / 427.2 MB, free: 8.039 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003855/0.1954, allocations: 0.5313 MB / 427.7 MB, free: 7.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.1954, allocations: 33.7 kB / 427.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.1956, allocations: 482.4 kB / 428.2 MB, free: 6.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.271e-05/0.1957, allocations: 209 kB / 428.4 MB, free: 6.773 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.128e-05/0.1957, allocations: 16 kB / 428.4 MB, free: 6.758 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.745e-05/0.1958, allocations: 382.8 kB / 428.8 MB, free: 6.375 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/0.196, allocations: 165.9 kB / 429 MB, free: 6.211 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.1963, allocations: 459.2 kB / 429.4 MB, free: 5.633 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005768/0.1969, allocations: 0.6634 MB / 430.1 MB, free: 4.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.1969, allocations: 4 kB / 430.1 MB, free: 4.836 MB / 298.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0008307/0.1977, allocations: 0.7345 MB / 430.8 MB, free: 4.094 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.1977, allocations: 8 kB / 430.8 MB, free: 4.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.1978, allocations: 16.06 kB / 430.8 MB, free: 4.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001263/0.1979, allocations: 48.88 kB / 430.9 MB, free: 4.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004696/0.1984, allocations: 183.7 kB / 431.1 MB, free: 3.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007961/0.1992, allocations: 1.51 MB / 432.6 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002421/0.1994, allocations: 31.98 kB / 432.6 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.1995, allocations: 32 kB / 432.6 MB, free: 2.129 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (101): * Single equations (assignments): 100 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000208/0.1997, allocations: 233.5 kB / 432.9 MB, free: 1.891 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.304e-05/0.1998, allocations: 75.06 kB / 432.9 MB, free: 1.816 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.592e-05/0.1999, allocations: 75.14 kB / 433 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1999, allocations: 15.88 kB / 433 MB, free: 1.727 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.1999, allocations: 4 kB / 433 MB, free: 1.723 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.1999, allocations: 3.984 kB / 433 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.2013, allocations: 1.414 MB / 434.4 MB, free: 200 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.2013, allocations: 4 kB / 434.4 MB, free: 196 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004097/0.2017, allocations: 119.8 kB / 434.6 MB, free: 76 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.885e-05/0.2018, allocations: 20.86 kB / 434.6 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.449e-05/0.2018, allocations: 16 kB / 434.6 MB, free: 36 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007661/0.2026, allocations: 1.28 MB / 435.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.2026, allocations: 4.078 kB / 435.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000913/0.2035, allocations: 0.7801 MB / 436.7 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.908e-05/0.2036, allocations: 136.2 kB / 436.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.636e-05/0.2036, allocations: 15.94 kB / 436.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.2038, allocations: 20 kB / 436.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.606e-05/0.2039, allocations: 35.89 kB / 436.9 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-05/0.204, allocations: 20 kB / 436.9 MB, free: 13.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003307/0.2043, allocations: 359.1 kB / 437.2 MB, free: 13.19 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2043, allocations: 0 / 437.2 MB, free: 13.19 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005339/0.2048, allocations: 136 kB / 437.4 MB, free: 13.06 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.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 (56): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001191/0.206, allocations: 1.348 MB / 438.7 MB, free: 11.65 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008452/0.2069, allocations: 0.5883 MB / 439.3 MB, free: 11.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2069, allocations: 384 / 439.3 MB, free: 11.05 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003586/0.2073, allocations: 315.4 kB / 439.6 MB, free: 10.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007211/0.208, allocations: 106.9 kB / 439.7 MB, free: 10.63 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00557/0.2136, allocations: 4.755 MB / 444.5 MB, free: 5.648 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/0.2141, allocations: 0.9613 MB / 445.4 MB, free: 4.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003609/0.2144, allocations: 331.3 kB / 445.8 MB, free: 4.336 MB / 314.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2145, allocations: 0 / 445.8 MB, free: 4.336 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.536/3.75, allocations: 14.72 MB / 460.5 MB, free: 5.594 MB / 330.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches