Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001876/0.001876, allocations: 97.72 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002254/0.002254, allocations: 192.1 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.815/2.815, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002146, allocations: 51.92 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1659, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.007738/0.1737, allocations: 4.561 MB / 331.9 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003401/0.1772, allocations: 1.369 MB / 333.3 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006173/0.1779, allocations: 23.88 kB / 333.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005076/0.1784, allocations: 182.2 kB / 333.5 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000616/0.1791, allocations: 158.4 kB / 333.7 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009714/0.1801, allocations: 367.5 kB / 334 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001388/0.1815, allocations: 0.9822 MB / 335 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006951/0.1822, allocations: 415.1 kB / 335.4 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004774/0.1827, allocations: 322.6 kB / 335.7 MB, free: 11.97 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005202/0.1832, allocations: 353.9 kB / 336.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.1833, allocations: 72 kB / 336.1 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002398/0.1836, allocations: 115.9 kB / 336.3 MB, free: 11.44 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002211/0.1838, allocations: 171.3 kB / 336.4 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000365/0.1842, allocations: 425.5 kB / 336.8 MB, free: 10.85 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.1853, allocations: 1.051 MB / 337.9 MB, free: 9.797 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1853, allocations: 0 / 337.9 MB, free: 9.797 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1853, allocations: 0 / 337.9 MB, free: 9.797 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.1853, allocations: 0 / 337.9 MB, free: 9.797 MB / 286.1 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.001948/0.1873, allocations: 1.146 MB / 339 MB, free: 8.602 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.1874, allocations: 12.03 kB / 339 MB, free: 8.59 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.1875, allocations: 134.9 kB / 339.2 MB, free: 8.449 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.1877, allocations: 106.7 kB / 339.3 MB, free: 8.344 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009378/0.1886, allocations: 0.5877 MB / 339.9 MB, free: 7.715 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.717e-05/0.1887, allocations: 58 kB / 339.9 MB, free: 7.656 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.1888, allocations: 91.83 kB / 340 MB, free: 7.566 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.1903, allocations: 0.8364 MB / 340.8 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.7e-05/0.1903, allocations: 19.92 kB / 340.9 MB, free: 6.605 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.017e-05/0.1904, allocations: 36 kB / 340.9 MB, free: 6.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/0.1904, allocations: 20 kB / 340.9 MB, free: 6.551 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.1915, allocations: 471.3 kB / 341.4 MB, free: 6.09 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004711/0.1962, allocations: 4.396 MB / 345.8 MB, free: 1.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007005/0.1969, allocations: 303.2 kB / 346.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000253/0.1972, allocations: 157.2 kB / 346.2 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003439/0.1976, allocations: 170.6 kB / 346.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.1976, allocations: 38.94 kB / 346.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 3.056e-06/0.1976, allocations: 0 / 346.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.00494/0.2026, allocations: 1.724 MB / 348.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/0.2027, allocations: 63.91 kB / 348.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.2038, allocations: 0.5391 MB / 348.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.615e-05/0.2038, allocations: 33.7 kB / 348.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005379/0.2044, allocations: 482.4 kB / 349.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003018/0.2047, allocations: 205 kB / 349.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002768/0.205, allocations: 142.5 kB / 349.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002578/0.2053, allocations: 378.8 kB / 350 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006198/0.2059, allocations: 165.9 kB / 350.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008345/0.2068, allocations: 455.2 kB / 350.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.2082, allocations: 0.6712 MB / 351.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.2083, allocations: 4 kB / 351.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.002074/0.2103, allocations: 0.7345 MB / 352 MB, free: 10.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.544e-05/0.2104, allocations: 19.94 kB / 352 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.078e-05/0.2105, allocations: 8 kB / 352 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004385/0.211, allocations: 44.84 kB / 352.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.2121, allocations: 187.7 kB / 352.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002548/0.2147, allocations: 1.689 MB / 353.9 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007209/0.2154, allocations: 24 kB / 354 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.885e-05/0.2155, allocations: 40 kB / 354 MB, free: 8.66 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007832/0.2163, allocations: 237.6 kB / 354.2 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002219/0.2166, allocations: 75 kB / 354.3 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003091/0.2169, allocations: 71.08 kB / 354.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.2169, allocations: 8 kB / 354.4 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.2169, allocations: 0 / 354.4 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.217, allocations: 3.984 kB / 354.4 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003956/0.2209, allocations: 1.419 MB / 355.8 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.221, allocations: 4.125 kB / 355.8 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.222, allocations: 119.9 kB / 355.9 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001907/0.2223, allocations: 29.14 kB / 355.9 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.425e-05/0.2224, allocations: 15.98 kB / 356 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001993/0.2244, allocations: 1.375 MB / 357.3 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/0.2244, allocations: 4 kB / 357.3 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.2266, allocations: 0.7762 MB / 358.1 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003254/0.2269, allocations: 132.3 kB / 358.2 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003433/0.2273, allocations: 16 kB / 358.3 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004476/0.2278, allocations: 12.19 kB / 358.3 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.228, allocations: 47.91 kB / 358.3 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.995e-05/0.228, allocations: 23.94 kB / 358.3 MB, free: 3.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009359/0.229, allocations: 363.1 kB / 358.7 MB, free: 3.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.229, allocations: 0 / 358.7 MB, free: 3.629 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001558/0.2306, allocations: 136 kB / 358.8 MB, free: 3.496 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002854/0.2334, allocations: 1.341 MB / 360.2 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002737/0.2362, allocations: 0.6146 MB / 360.8 MB, free: 1.457 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.465e-05/0.2362, allocations: 3.938 kB / 360.8 MB, free: 1.453 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009915/0.2372, allocations: 312.1 kB / 361.1 MB, free: 1.137 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001527/0.2388, allocations: 111.2 kB / 361.2 MB, free: 1.031 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02007/0.2589, allocations: 6.236 MB / 367.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001235/0.2602, allocations: 0.9652 MB / 368.4 MB, free: 9.387 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008256/0.2611, allocations: 85.91 kB / 368.5 MB, free: 9.301 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007057/0.2618, allocations: 323.3 kB / 368.8 MB, free: 8.984 MB / 318.1 MB Notification: Performance of SimCode: time 3.226e-06/0.2619, allocations: 0 / 368.8 MB, free: 8.984 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3799/0.6418, allocations: 11.56 MB / 380.4 MB, free: 53.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.11/16.75, allocations: 0 / 380.4 MB, free: 53.68 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches