Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001677/0.001678, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002029/0.002029, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 55.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2697, allocations: 50.55 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005475/0.2752, allocations: 4.6 MB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.2777, allocations: 1.395 MB / 414.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003623/0.2781, allocations: 23.88 kB / 414.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000382/0.2785, allocations: 182.2 kB / 414.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003361/0.2788, allocations: 162.3 kB / 415.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007133/0.2795, allocations: 371.4 kB / 415.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008935/0.2805, allocations: 0.9938 MB / 416.5 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005246/0.281, allocations: 414.9 kB / 416.9 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004055/0.2814, allocations: 346.5 kB / 417.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002998/0.2817, allocations: 338 kB / 417.5 MB, free: 8.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.998e-05/0.2818, allocations: 75.94 kB / 417.6 MB, free: 8.656 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001928/0.282, allocations: 123.9 kB / 417.7 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.2822, allocations: 179.3 kB / 417.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003269/0.2825, allocations: 425.5 kB / 418.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001155/0.2836, allocations: 1.108 MB / 419.4 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.2837, allocations: 0 / 419.4 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.028e-06/0.2837, allocations: 0 / 419.4 MB, free: 6.832 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.2837, allocations: 3.938 kB / 419.4 MB, free: 6.828 MB / 334.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.001603/0.2853, allocations: 1.172 MB / 420.6 MB, free: 5.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.2854, allocations: 8.031 kB / 420.6 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.2855, allocations: 126.9 kB / 420.7 MB, free: 5.461 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002458/0.2858, allocations: 123.3 kB / 420.8 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.2868, allocations: 0.6311 MB / 421.5 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.053e-05/0.2869, allocations: 58 kB / 421.5 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001606/0.287, allocations: 87.94 kB / 421.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.2883, allocations: 0.852 MB / 422.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.511e-05/0.2883, allocations: 4 kB / 422.5 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.744e-05/0.2884, allocations: 40 kB / 422.5 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.2884, allocations: 20 kB / 422.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008508/0.2893, allocations: 475.2 kB / 423 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00357/0.2929, allocations: 4.381 MB / 427.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005888/0.2935, allocations: 295.5 kB / 427.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.2937, allocations: 149.5 kB / 427.8 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001943/0.2939, allocations: 170.5 kB / 428 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.294, allocations: 42.94 kB / 428 MB, free: 13.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.214e-06/0.294, allocations: 0 / 428 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003357/0.2973, allocations: 1.743 MB / 429.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.2974, allocations: 63.91 kB / 429.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006303/0.298, allocations: 0.5392 MB / 430.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.2981, allocations: 33.7 kB / 430.4 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003114/0.2984, allocations: 491.8 kB / 430.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.2986, allocations: 222.1 kB / 431.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.2987, allocations: 142.6 kB / 431.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.2989, allocations: 382.8 kB / 431.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.2992, allocations: 161.9 kB / 431.8 MB, free: 9.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004634/0.2997, allocations: 459.1 kB / 432.2 MB, free: 9.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000775/0.3005, allocations: 0.6634 MB / 432.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.3005, allocations: 0 / 432.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001104/0.3016, allocations: 0.7576 MB / 433.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.3016, allocations: 10.81 kB / 433.7 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.3016, allocations: 8 kB / 433.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001802/0.3018, allocations: 49.66 kB / 433.7 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005665/0.3024, allocations: 183.7 kB / 433.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/0.3038, allocations: 1.685 MB / 435.6 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002963/0.3041, allocations: 28 kB / 435.6 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-05/0.3042, allocations: 32 kB / 435.6 MB, free: 5.59 MB / 350.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.0002843/0.3044, allocations: 241.4 kB / 435.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-05/0.3045, allocations: 79.47 kB / 435.9 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001061/0.3047, allocations: 75.06 kB / 436 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3047, allocations: 8.062 kB / 436 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.3047, allocations: 4 kB / 436 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3047, allocations: 0 / 436 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001794/0.3065, allocations: 1.418 MB / 437.4 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.3065, allocations: 4 kB / 437.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004896/0.307, allocations: 107.9 kB / 437.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.337e-05/0.3071, allocations: 33.19 kB / 437.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/0.3071, allocations: 12 kB / 437.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008501/0.308, allocations: 1.382 MB / 439 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.308, allocations: 7.938 kB / 439 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000977/0.309, allocations: 0.7817 MB / 439.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.3091, allocations: 136.6 kB / 439.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.617e-05/0.3092, allocations: 19.98 kB / 439.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.3094, allocations: 12 kB / 439.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.443e-05/0.3095, allocations: 43.92 kB / 440 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.3095, allocations: 16 kB / 440 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003648/0.3099, allocations: 367.1 kB / 440.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3099, allocations: 4 kB / 440.4 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006173/0.3105, allocations: 136 kB / 440.5 MB, free: 408 kB / 350.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.001293/0.3118, allocations: 1.344 MB / 441.8 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009826/0.3128, allocations: 0.5958 MB / 442.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.3128, allocations: 0 / 442.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003819/0.3132, allocations: 303.6 kB / 442.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006265/0.3139, allocations: 107.5 kB / 442.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007396/0.3213, allocations: 6.078 MB / 448.9 MB, free: 7.473 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.3218, allocations: 0.9613 MB / 449.9 MB, free: 6.484 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002792/0.3221, allocations: 90 kB / 450 MB, free: 6.395 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003563/0.3225, allocations: 323.3 kB / 450.3 MB, free: 6.078 MB / 366.1 MB Notification: Performance of SimCode: time 1.353e-06/0.3225, allocations: 0 / 450.3 MB, free: 6.078 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03845/0.3609, allocations: 11.88 MB / 462.2 MB, free: 10.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.71, allocations: 11.2 kB / 462.2 MB, free: 10.35 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches