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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008092/0.0008092, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007271/0.0007271, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8728/0.8728, allocations: 173.4 MB / 200.4 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.097e-05/1.275e-05, allocations: 6.219 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003416/0.003428, allocations: 4.089 MB / 322.5 MB, free: 2.27 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.004996, allocations: 1.298 MB / 323.8 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002158/0.005212, allocations: 43.62 kB / 323.8 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002651/0.005477, allocations: 186.1 kB / 324 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.005689, allocations: 162.3 kB / 324.2 MB, free: 0.582 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004778/0.006167, allocations: 375.4 kB / 324.6 MB, free: 220 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006204/0.006787, allocations: 1.005 MB / 325.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003137/0.007101, allocations: 263.4 kB / 325.8 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003382/0.007439, allocations: 0.4911 MB / 326.3 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001856/0.007625, allocations: 235.1 kB / 326.5 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.449e-05/0.007689, allocations: 72 kB / 326.6 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.007817, allocations: 115.9 kB / 326.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.94e-05/0.007896, allocations: 175.2 kB / 326.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.008039, allocations: 267.2 kB / 327.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006552/0.008694, allocations: 1.098 MB / 328.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.008696, allocations: 0 / 328.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.008697, allocations: 0 / 328.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.008705, allocations: 3.938 kB / 328.3 MB, free: 12.48 MB / 298.7 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.000923/0.009628, allocations: 1.08 MB / 329.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.009662, allocations: 8.922 kB / 329.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.364e-05/0.009755, allocations: 126.9 kB / 329.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.571e-05/0.009841, allocations: 115.3 kB / 329.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005703/0.01041, allocations: 0.5472 MB / 330.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.01044, allocations: 62 kB / 330.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.721e-05/0.01051, allocations: 87.94 kB / 330.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009943/0.0115, allocations: 0.8404 MB / 331.1 MB, free: 9.445 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.677e-05/0.01157, allocations: 11.89 kB / 331.1 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.066e-05/0.01165, allocations: 43.94 kB / 331.2 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.01167, allocations: 20 kB / 331.2 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007302/0.0124, allocations: 467.3 kB / 331.6 MB, free: 8.914 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002575/0.01497, allocations: 4.155 MB / 335.8 MB, free: 4.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004128/0.01539, allocations: 280.1 kB / 336.1 MB, free: 4.289 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.01555, allocations: 141.2 kB / 336.2 MB, free: 4.148 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001123/0.01566, allocations: 12.36 kB / 336.2 MB, free: 4.137 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.01568, allocations: 38.94 kB / 336.3 MB, free: 4.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 2.895e-06/0.01568, allocations: 0 / 336.3 MB, free: 4.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.00226/0.01794, allocations: 1.597 MB / 337.9 MB, free: 2.434 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.01798, allocations: 59.91 kB / 337.9 MB, free: 2.363 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004265/0.0184, allocations: 0.5508 MB / 338.5 MB, free: 1.801 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.01843, allocations: 37.7 kB / 338.5 MB, free: 1.758 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.01865, allocations: 487.7 kB / 339 MB, free: 1.273 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.01876, allocations: 230 kB / 339.2 MB, free: 1.047 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.01887, allocations: 138.6 kB / 339.3 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.01899, allocations: 382.7 kB / 339.7 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.01918, allocations: 161.9 kB / 339.9 MB, free: 368 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003265/0.01951, allocations: 463.2 kB / 340.3 MB, free: 15.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005428/0.02005, allocations: 0.6721 MB / 341 MB, free: 14.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.02006, allocations: 4 kB / 341 MB, free: 14.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0007325/0.02079, allocations: 0.7442 MB / 341.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.02081, allocations: 11.94 kB / 341.8 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.02082, allocations: 12 kB / 341.8 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001331/0.02096, allocations: 48.78 kB / 341.8 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003311/0.02129, allocations: 179.7 kB / 342 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009524/0.02224, allocations: 1.574 MB / 343.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001788/0.02242, allocations: 28.17 kB / 343.6 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.766e-05/0.02245, allocations: 40 kB / 343.6 MB, free: 12.21 MB / 314.7 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.0002113/0.02266, allocations: 229.5 kB / 343.9 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.068e-05/0.02275, allocations: 75.53 kB / 343.9 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.887e-05/0.02282, allocations: 75.08 kB / 344 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.02282, allocations: 7.938 kB / 344 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.02283, allocations: 4 kB / 344 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.02283, allocations: 3.984 kB / 344 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.02401, allocations: 1.275 MB / 345.3 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.02401, allocations: 4 kB / 345.3 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.02427, allocations: 115.8 kB / 345.4 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.796e-05/0.02432, allocations: 21.19 kB / 345.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.02435, allocations: 20 kB / 345.5 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006164/0.02496, allocations: 1.256 MB / 346.7 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.02497, allocations: 7.938 kB / 346.7 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006407/0.02561, allocations: 0.777 MB / 347.5 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.155e-05/0.02566, allocations: 67.53 kB / 347.6 MB, free: 8.016 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/0.02569, allocations: 11.94 kB / 347.6 MB, free: 8.004 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.02579, allocations: 19.98 kB / 347.6 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.566e-05/0.02585, allocations: 40.03 kB / 347.6 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.02586, allocations: 19.94 kB / 347.6 MB, free: 7.926 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002519/0.02611, allocations: 363.1 kB / 348 MB, free: 7.574 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02611, allocations: 0 / 348 MB, free: 7.574 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004173/0.02653, allocations: 139.9 kB / 348.1 MB, free: 7.438 MB / 314.7 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.001034/0.02756, allocations: 1.337 MB / 349.5 MB, free: 6.035 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006697/0.02823, allocations: 0.5678 MB / 350 MB, free: 5.457 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.02824, allocations: 4.188 kB / 350 MB, free: 5.453 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.02847, allocations: 296.2 kB / 350.3 MB, free: 5.152 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.02888, allocations: 110.1 kB / 350.4 MB, free: 5.051 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005055/0.03394, allocations: 5.833 MB / 356.3 MB, free: 14.79 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002322/0.03417, allocations: 374.3 kB / 356.6 MB, free: 14.4 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001822/0.03435, allocations: 85.94 kB / 356.7 MB, free: 14.31 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002484/0.0346, allocations: 324.4 kB / 357 MB, free: 13.99 MB / 330.7 MB Notification: Performance of SimCode: time 9.32e-07/0.0346, allocations: 0 / 357 MB, free: 13.99 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02863/0.06323, allocations: 12.69 MB / 369.7 MB, free: 1.547 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.687/7.75, allocations: 6.875 kB / 369.7 MB, free: 1.543 MB / 330.7 MB " [Timeout remaining time 652] (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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mass2b.v in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass2b.v from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3a.s in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3a.s from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3a.v in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3a.v from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3b.s in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3b.s from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3b.v in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3b.v from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.485353879630566]