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: translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 195.9 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.6 MB / 244.3 MB, free: 6.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000739/0.0007389, allocations: 101.8 kB / 296.4 MB, free: 6.785 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00019/0.00019, allocations: 12 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1735/0.1737, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.002884/0.1766, allocations: 3.908 MB / 411.4 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.178, allocations: 1.318 MB / 412.7 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.1783, allocations: 19.88 kB / 412.7 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002111/0.1785, allocations: 124.8 kB / 412.9 MB, free: 22.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002025/0.1787, allocations: 127.5 kB / 413 MB, free: 22.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004254/0.1791, allocations: 250.3 kB / 413.2 MB, free: 22.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004785/0.1796, allocations: 0.849 MB / 414.1 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003018/0.1799, allocations: 293.7 kB / 414.4 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.1802, allocations: 246.7 kB / 414.6 MB, free: 20.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.1804, allocations: 278.3 kB / 414.9 MB, free: 20.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.881e-05/0.1804, allocations: 28 kB / 414.9 MB, free: 20.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.1806, allocations: 71.91 kB / 415 MB, free: 20.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.397e-05/0.1806, allocations: 115.4 kB / 415.1 MB, free: 20.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.03e-05/0.1807, allocations: 177.2 kB / 415.3 MB, free: 20.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004159/0.1811, allocations: 0.7645 MB / 416 MB, free: 19.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1811, allocations: 0 / 416 MB, free: 19.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1811, allocations: 0 / 416 MB, free: 19.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.1812, allocations: 0 / 416 MB, free: 19.24 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.000991/0.1822, allocations: 0.9821 MB / 417 MB, free: 18.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.908e-05/0.1822, allocations: 12.03 kB / 417 MB, free: 18.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001867/0.1824, allocations: 122.7 kB / 417.1 MB, free: 18.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005637/0.183, allocations: 0.5648 MB / 417.7 MB, free: 17.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.164e-05/0.183, allocations: 58 kB / 417.8 MB, free: 17.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.666e-05/0.1831, allocations: 91.84 kB / 417.8 MB, free: 17.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009419/0.184, allocations: 0.8365 MB / 418.7 MB, free: 16.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.1841, allocations: 11.92 kB / 418.7 MB, free: 16.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.577e-05/0.1841, allocations: 39.98 kB / 418.7 MB, free: 16.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.1841, allocations: 20 kB / 418.8 MB, free: 16.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006598/0.1848, allocations: 471.3 kB / 419.2 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002284/0.1871, allocations: 4.412 MB / 423.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004214/0.1875, allocations: 295.3 kB / 423.9 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.1877, allocations: 149.5 kB / 424.1 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000138/0.1879, allocations: 170.5 kB / 424.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.474e-05/0.1879, allocations: 42.89 kB / 424.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 1.673e-06/0.1879, allocations: 4 kB / 424.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.002407/0.1903, allocations: 1.743 MB / 426 MB, free: 8.691 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.08e-05/0.1903, allocations: 59.91 kB / 426.1 MB, free: 8.621 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003912/0.1907, allocations: 0.5275 MB / 426.6 MB, free: 8.086 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.1908, allocations: 33.7 kB / 426.6 MB, free: 8.047 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.1909, allocations: 486.3 kB / 427.1 MB, free: 7.562 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.992e-05/0.191, allocations: 201 kB / 427.3 MB, free: 7.363 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-05/0.191, allocations: 24 kB / 427.3 MB, free: 7.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.831e-05/0.1911, allocations: 378.8 kB / 427.7 MB, free: 6.961 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002177/0.1913, allocations: 161.9 kB / 427.9 MB, free: 6.805 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/0.1916, allocations: 459.2 kB / 428.3 MB, free: 6.227 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002878/0.1919, allocations: 240.6 kB / 428.5 MB, free: 5.996 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.192, allocations: 0 / 428.5 MB, free: 5.996 MB / 298.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.000821/0.1928, allocations: 0.7337 MB / 429.3 MB, free: 5.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.1928, allocations: 9 kB / 429.3 MB, free: 5.242 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.1928, allocations: 12 kB / 429.3 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001287/0.193, allocations: 52.78 kB / 429.3 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004818/0.1934, allocations: 179.7 kB / 429.5 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007863/0.1942, allocations: 1.522 MB / 431 MB, free: 3.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002467/0.1945, allocations: 28 kB / 431.1 MB, free: 3.312 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.575e-05/0.1945, allocations: 36 kB / 431.1 MB, free: 3.277 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.000207/0.1948, allocations: 233.5 kB / 431.3 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.415e-05/0.1948, allocations: 71.16 kB / 431.4 MB, free: 2.969 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.343e-05/0.1949, allocations: 71.08 kB / 431.5 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1949, allocations: 8.062 kB / 431.5 MB, free: 2.891 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1949, allocations: 4 kB / 431.5 MB, free: 2.887 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1949, allocations: 7.938 kB / 431.5 MB, free: 2.879 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001338/0.1963, allocations: 1.412 MB / 432.9 MB, free: 1.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.1963, allocations: 4 kB / 432.9 MB, free: 1.355 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004231/0.1967, allocations: 119.8 kB / 433 MB, free: 1.238 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.348e-05/0.1968, allocations: 20.86 kB / 433 MB, free: 1.215 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.533e-05/0.1968, allocations: 19.98 kB / 433.1 MB, free: 1.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000551/0.1974, allocations: 1.276 MB / 434.3 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.1974, allocations: 4 kB / 434.3 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009196/0.1983, allocations: 0.7801 MB / 435.1 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.018e-05/0.1984, allocations: 140.2 kB / 435.3 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.813e-05/0.1985, allocations: 15.95 kB / 435.3 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.1987, allocations: 20 kB / 435.3 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.019e-05/0.1988, allocations: 39.89 kB / 435.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.1988, allocations: 19.98 kB / 435.4 MB, free: 14.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003427/0.1992, allocations: 355.1 kB / 435.7 MB, free: 14.35 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.884e-06/0.1992, allocations: 288 / 435.7 MB, free: 14.35 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00055/0.1997, allocations: 143.9 kB / 435.8 MB, free: 14.21 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.000128/0.1999, allocations: 123.1 kB / 436 MB, free: 14.08 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000847/0.2007, allocations: 0.5839 MB / 436.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2007, allocations: 0 / 436.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003569/0.2011, allocations: 308.1 kB / 436.8 MB, free: 13.17 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005266/0.2016, allocations: 106.6 kB / 437 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002577/0.2042, allocations: 2.33 MB / 439.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004985/0.2047, allocations: 0.9768 MB / 440.3 MB, free: 9.672 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.2049, allocations: 63.42 kB / 440.3 MB, free: 9.609 MB / 314.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2049, allocations: 0 / 440.3 MB, free: 9.609 MB / 314.7 MB Notification: Performance of Templates: time 0.01323/0.2181, allocations: 12.15 MB / 452.5 MB, free: 13.46 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (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 & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/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