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.001432/0.001432, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 64.12 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2588, allocations: 50.54 MB / 408.7 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005842/0.2647, allocations: 4.59 MB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002639/0.2674, allocations: 1.411 MB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003516/0.2678, allocations: 19.88 kB / 414.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003989/0.2682, allocations: 178.2 kB / 414.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003376/0.2686, allocations: 162.3 kB / 415.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007893/0.2694, allocations: 375.4 kB / 415.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00103/0.2704, allocations: 0.9782 MB / 416.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005942/0.271, allocations: 430.8 kB / 416.9 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004272/0.2714, allocations: 326.6 kB / 417.2 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003642/0.2718, allocations: 342 kB / 417.5 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.55e-05/0.2719, allocations: 72 kB / 417.6 MB, free: 8.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002258/0.2721, allocations: 119.9 kB / 417.7 MB, free: 8.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.2723, allocations: 179.3 kB / 417.9 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003528/0.2727, allocations: 425.5 kB / 418.3 MB, free: 8.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001205/0.2739, allocations: 1.111 MB / 419.4 MB, free: 6.902 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2739, allocations: 4 kB / 419.4 MB, free: 6.898 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2739, allocations: 4 kB / 419.4 MB, free: 6.895 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.145e-05/0.2739, allocations: 0 / 419.4 MB, free: 6.895 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.001642/0.2756, allocations: 1.164 MB / 420.6 MB, free: 5.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.2756, allocations: 12.03 kB / 420.6 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001338/0.2758, allocations: 126.9 kB / 420.7 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002588/0.276, allocations: 123.3 kB / 420.8 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009786/0.277, allocations: 0.6428 MB / 421.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.814e-05/0.2771, allocations: 54 kB / 421.5 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.2772, allocations: 87.95 kB / 421.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.2786, allocations: 0.8442 MB / 422.5 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.646e-05/0.2786, allocations: 7.938 kB / 422.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.625e-05/0.2787, allocations: 36 kB / 422.5 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.2787, allocations: 20 kB / 422.5 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009073/0.2797, allocations: 475.3 kB / 423 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004096/0.2838, allocations: 4.385 MB / 427.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000603/0.2844, allocations: 303.5 kB / 427.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002413/0.2846, allocations: 137.6 kB / 427.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002229/0.2849, allocations: 174.6 kB / 428 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/0.2849, allocations: 38.88 kB / 428 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.164e-06/0.2849, allocations: 0 / 428 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003491/0.2884, allocations: 1.743 MB / 429.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.2885, allocations: 63.91 kB / 429.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006101/0.2891, allocations: 0.5431 MB / 430.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.635e-05/0.2892, allocations: 37.7 kB / 430.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003833/0.2895, allocations: 491.8 kB / 430.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.2897, allocations: 218.1 kB / 431.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.2899, allocations: 146.5 kB / 431.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002563/0.2902, allocations: 378.8 kB / 431.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/0.2905, allocations: 157.9 kB / 431.8 MB, free: 9.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005409/0.291, allocations: 467.1 kB / 432.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008786/0.2919, allocations: 0.6673 MB / 432.9 MB, free: 8.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.2919, allocations: 0 / 432.9 MB, free: 8.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001214/0.2932, allocations: 0.7463 MB / 433.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.2932, allocations: 8 kB / 433.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.2932, allocations: 8 kB / 433.6 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002017/0.2934, allocations: 48.84 kB / 433.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005765/0.294, allocations: 179.7 kB / 433.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001812/0.2958, allocations: 1.697 MB / 435.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.2962, allocations: 24 kB / 435.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.465e-05/0.2963, allocations: 40.06 kB / 435.6 MB, free: 5.652 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.0003732/0.2967, allocations: 229.5 kB / 435.9 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.2968, allocations: 79.47 kB / 435.9 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001294/0.2969, allocations: 79.06 kB / 436 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2969, allocations: 4 kB / 436 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.2969, allocations: 4 kB / 436 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.2969, allocations: 3.984 kB / 436 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/0.299, allocations: 1.414 MB / 437.4 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.2991, allocations: 4 kB / 437.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004789/0.2995, allocations: 111.9 kB / 437.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.141e-05/0.2996, allocations: 24.84 kB / 437.6 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.412e-05/0.2997, allocations: 12 kB / 437.6 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.3008, allocations: 1.383 MB / 439 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/0.3008, allocations: 12.08 kB / 439 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.302, allocations: 0.7778 MB / 439.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.3022, allocations: 136.6 kB / 439.9 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.669e-05/0.3022, allocations: 19.98 kB / 439.9 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.3024, allocations: 16 kB / 439.9 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.258e-05/0.3025, allocations: 43.92 kB / 440 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/0.3026, allocations: 16 kB / 440 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004366/0.303, allocations: 367.1 kB / 440.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.303, allocations: 0 / 440.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006692/0.3037, allocations: 136 kB / 440.5 MB, free: 488 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.001458/0.3052, allocations: 1.345 MB / 441.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.3062, allocations: 0.6042 MB / 442.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3062, allocations: 0 / 442.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004199/0.3067, allocations: 302.8 kB / 442.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006097/0.3073, allocations: 99.64 kB / 442.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008139/0.3154, allocations: 6.086 MB / 448.9 MB, free: 7.539 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006806/0.3162, allocations: 0.9691 MB / 449.9 MB, free: 6.543 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000274/0.3164, allocations: 82.03 kB / 449.9 MB, free: 6.461 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004348/0.3169, allocations: 323.3 kB / 450.3 MB, free: 6.145 MB / 366.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3169, allocations: 0 / 450.3 MB, free: 6.145 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04501/0.3619, allocations: 11.88 MB / 462.1 MB, free: 10.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.18, allocations: 11.31 kB / 462.2 MB, free: 10.43 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.1.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