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.001397/0.001397, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001504/0.001504, allocations: 183.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001395/0.001395, allocations: 47.94 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09799, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006/0.104, allocations: 4.564 MB / 379.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2055/0.3096, allocations: 1.363 MB / 380.6 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006833/0.3104, allocations: 23.97 kB / 380.6 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004616/0.3109, allocations: 176.5 kB / 380.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004733/0.3114, allocations: 168 kB / 380.9 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001047/0.3124, allocations: 366 kB / 381.3 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.3136, allocations: 0.9859 MB / 382.3 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006495/0.3143, allocations: 422.2 kB / 382.7 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00055/0.3149, allocations: 332.2 kB / 383 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004401/0.3153, allocations: 352.4 kB / 383.4 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.3154, allocations: 70.91 kB / 383.4 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002823/0.3157, allocations: 112 kB / 383.5 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.3159, allocations: 176 kB / 383.7 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003774/0.3163, allocations: 434.8 kB / 384.1 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001702/0.318, allocations: 1.098 MB / 385.2 MB, free: 7.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.318, allocations: 0 / 385.2 MB, free: 7.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.318, allocations: 0 / 385.2 MB, free: 7.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.092e-05/0.318, allocations: 0 / 385.2 MB, free: 7.66 MB / 318.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.002031/0.3201, allocations: 1.175 MB / 386.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.3201, allocations: 9.062 kB / 386.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001437/0.3203, allocations: 128.1 kB / 386.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/0.3205, allocations: 110.4 kB / 386.6 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.3216, allocations: 0.6333 MB / 387.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.143e-05/0.3216, allocations: 60.84 kB / 387.3 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.3217, allocations: 81.28 kB / 387.4 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.3231, allocations: 0.8432 MB / 388.3 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.184e-05/0.3232, allocations: 14 kB / 388.3 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.742e-05/0.3232, allocations: 37.84 kB / 388.3 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.518e-05/0.3233, allocations: 20.62 kB / 388.3 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.3244, allocations: 470.6 kB / 388.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003668/0.328, allocations: 4.384 MB / 393.2 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006518/0.3287, allocations: 303.2 kB / 393.5 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.329, allocations: 145.9 kB / 393.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001816/0.3292, allocations: 167.4 kB / 393.8 MB, free: 1.418 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.3292, allocations: 45.28 kB / 393.8 MB, free: 1.367 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 2.354e-06/0.3292, allocations: 1.406 kB / 393.8 MB, free: 1.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.003392/0.3326, allocations: 1.749 MB / 395.6 MB, free: 300 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.3327, allocations: 57.47 kB / 395.6 MB, free: 236 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007676/0.3335, allocations: 0.5411 MB / 396.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.872e-05/0.3335, allocations: 35.53 kB / 396.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003873/0.3339, allocations: 491.1 kB / 396.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/0.3341, allocations: 225.6 kB / 396.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000196/0.3343, allocations: 140.2 kB / 397 MB, free: 15.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.3345, allocations: 382.7 kB / 397.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003108/0.3348, allocations: 167.4 kB / 397.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005467/0.3354, allocations: 456.6 kB / 398 MB, free: 14.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009136/0.3363, allocations: 0.6699 MB / 398.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3363, allocations: 1.375 kB / 398.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001282/0.3376, allocations: 0.7399 MB / 399.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.3376, allocations: 9.625 kB / 399.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.3376, allocations: 9.719 kB / 399.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001896/0.3378, allocations: 46.61 kB / 399.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005815/0.3384, allocations: 182.8 kB / 399.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.3399, allocations: 1.696 MB / 401.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003747/0.3403, allocations: 25.53 kB / 401.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.743e-05/0.3403, allocations: 39.66 kB / 401.4 MB, free: 11.86 MB / 334.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.0003192/0.3407, allocations: 233.7 kB / 401.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.3408, allocations: 79.16 kB / 401.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001343/0.3409, allocations: 76.33 kB / 401.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3409, allocations: 11.03 kB / 401.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.3409, allocations: 0 / 401.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.341, allocations: 6.875 kB / 401.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002062/0.343, allocations: 1.407 MB / 403.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.343, allocations: 3.406 kB / 403.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004559/0.3435, allocations: 117.1 kB / 403.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-05/0.3436, allocations: 20.77 kB / 403.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.331e-05/0.3437, allocations: 14.5 kB / 403.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009808/0.3446, allocations: 1.379 MB / 404.8 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3447, allocations: 2.75 kB / 404.8 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.3458, allocations: 0.7774 MB / 405.5 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.346, allocations: 145.7 kB / 405.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.739e-05/0.346, allocations: 14.48 kB / 405.7 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.3462, allocations: 19.75 kB / 405.7 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.627e-05/0.3464, allocations: 42.62 kB / 405.8 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.049e-05/0.3464, allocations: 18.11 kB / 405.8 MB, free: 8.605 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005031/0.3469, allocations: 360.6 kB / 406.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.516e-06/0.3469, allocations: 0 / 406.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000796/0.3477, allocations: 141.3 kB / 406.3 MB, free: 8.422 MB / 334.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.001479/0.3492, allocations: 1.342 MB / 407.6 MB, free: 7.391 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001164/0.3504, allocations: 0.5917 MB / 408.2 MB, free: 7.105 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.3504, allocations: 384 / 408.2 MB, free: 7.105 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004638/0.3509, allocations: 314.2 kB / 408.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007012/0.3516, allocations: 106.7 kB / 408.6 MB, free: 6.867 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.3617, allocations: 6.072 MB / 414.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007439/0.3625, allocations: 0.9645 MB / 415.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003392/0.3628, allocations: 89.73 kB / 415.7 MB, free: 1.957 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004695/0.3633, allocations: 323.3 kB / 416.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3633, allocations: 0 / 416.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04173/0.4051, allocations: 11.85 MB / 427.9 MB, free: 7.664 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.13, allocations: 0 / 427.9 MB, free: 7.664 MB / 350.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