Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_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.001355/0.001355, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001326/0.001326, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 51.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3015, allocations: 49.43 MB / 400.2 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.007125/0.3086, allocations: 4.579 MB / 404.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003231/0.3119, allocations: 1.333 MB / 406.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005025/0.3124, allocations: 19.88 kB / 406.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004767/0.313, allocations: 178.2 kB / 406.3 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004257/0.3134, allocations: 162.3 kB / 406.5 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008222/0.3142, allocations: 367.5 kB / 406.9 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001071/0.3153, allocations: 0.982 MB / 407.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006143/0.3159, allocations: 414.9 kB / 408.2 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004885/0.3164, allocations: 330.5 kB / 408.6 MB, free: 424 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004079/0.3169, allocations: 342 kB / 408.9 MB, free: 80 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.317, allocations: 72 kB / 409 MB, free: 8 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002718/0.3173, allocations: 119.9 kB / 409.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.3174, allocations: 167.3 kB / 409.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004126/0.3178, allocations: 429.5 kB / 409.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001456/0.3193, allocations: 1.103 MB / 410.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3193, allocations: 4 kB / 410.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3193, allocations: 0 / 410.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.3194, allocations: 0 / 410.8 MB, free: 14.2 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.001886/0.3212, allocations: 1.168 MB / 411.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.3213, allocations: 12.03 kB / 412 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001556/0.3215, allocations: 126.9 kB / 412.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.3216, allocations: 115.2 kB / 412.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.3227, allocations: 0.6272 MB / 412.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.364e-05/0.3227, allocations: 58 kB / 412.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.3229, allocations: 91.94 kB / 413 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.3243, allocations: 0.8481 MB / 413.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.106e-05/0.3244, allocations: 15.89 kB / 413.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.061e-05/0.3245, allocations: 36 kB / 413.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.3245, allocations: 20 kB / 413.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009593/0.3255, allocations: 475.3 kB / 414.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004342/0.3298, allocations: 4.374 MB / 418.7 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006265/0.3305, allocations: 308.1 kB / 419 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002426/0.3307, allocations: 141.6 kB / 419.2 MB, free: 5.387 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00022/0.331, allocations: 170.6 kB / 419.3 MB, free: 5.184 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.331, allocations: 38.94 kB / 419.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.014e-06/0.331, allocations: 0 / 419.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003566/0.3346, allocations: 1.743 MB / 421.1 MB, free: 3.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.3347, allocations: 63.91 kB / 421.2 MB, free: 3.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006563/0.3353, allocations: 0.5392 MB / 421.7 MB, free: 2.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.518e-05/0.3354, allocations: 41.7 kB / 421.7 MB, free: 2.637 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003711/0.3357, allocations: 487.8 kB / 422.2 MB, free: 2.152 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/0.3359, allocations: 230 kB / 422.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.3361, allocations: 134.6 kB / 422.6 MB, free: 1.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002725/0.3364, allocations: 378.8 kB / 423 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002955/0.3367, allocations: 169.9 kB / 423.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005501/0.3373, allocations: 459.2 kB / 423.6 MB, free: 0.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009879/0.3383, allocations: 0.6673 MB / 424.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.3383, allocations: 4 kB / 424.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.00131/0.3396, allocations: 0.7426 MB / 425 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.3396, allocations: 12 kB / 425 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.3396, allocations: 8 kB / 425 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001845/0.3398, allocations: 44.84 kB / 425 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005732/0.3404, allocations: 179.7 kB / 425.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.3421, allocations: 1.693 MB / 426.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000345/0.3425, allocations: 32 kB / 426.9 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.597e-05/0.3425, allocations: 35.94 kB / 427 MB, free: 12.97 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.0003359/0.3429, allocations: 233.7 kB / 427.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.343, allocations: 75.47 kB / 427.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001913/0.3432, allocations: 75.08 kB / 427.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.3432, allocations: 4 kB / 427.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.3432, allocations: 3.984 kB / 427.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3432, allocations: 0 / 427.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.3454, allocations: 1.429 MB / 428.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.3454, allocations: 0 / 428.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004816/0.3459, allocations: 115.9 kB / 428.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.885e-05/0.346, allocations: 24.89 kB / 428.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.665e-05/0.3461, allocations: 23.92 kB / 429 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00125/0.3473, allocations: 1.375 MB / 430.3 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3474, allocations: 0 / 430.3 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.3485, allocations: 0.7857 MB / 431.1 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.3487, allocations: 136.6 kB / 431.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.525e-05/0.3488, allocations: 12 kB / 431.3 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.349, allocations: 16 kB / 431.3 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.76e-05/0.3491, allocations: 47.91 kB / 431.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.3491, allocations: 20 kB / 431.3 MB, free: 8.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005003/0.3496, allocations: 359.1 kB / 431.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3496, allocations: 0 / 431.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006795/0.3503, allocations: 140 kB / 431.8 MB, free: 7.789 MB / 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.001486/0.3518, allocations: 1.341 MB / 433.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.353, allocations: 0.592 MB / 433.8 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.353, allocations: 0.9375 kB / 433.8 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004872/0.3535, allocations: 310.8 kB / 434.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006588/0.3542, allocations: 94.84 kB / 434.2 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009135/0.3633, allocations: 6.085 MB / 440.2 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007161/0.3641, allocations: 0.9652 MB / 441.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003275/0.3644, allocations: 85.92 kB / 441.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004668/0.3649, allocations: 323.3 kB / 441.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of SimCode: time 1.363e-06/0.3649, allocations: 4 kB / 441.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04585/0.4108, allocations: 11.84 MB / 453.5 MB, free: 1.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.19, allocations: 11.33 kB / 453.5 MB, free: 1.801 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches