Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008757/0.0008757, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009282/0.0009282, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.859/0.859, allocations: 177.1 MB / 204.2 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.445e-05/1.601e-05, allocations: 6.219 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003387/0.003403, allocations: 4.131 MB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.005209, allocations: 1.356 MB / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004385/0.005647, allocations: 35.69 kB / 330.1 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003089/0.005956, allocations: 178.2 kB / 330.3 MB, free: 10.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003242/0.00628, allocations: 178.2 kB / 330.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006784/0.006959, allocations: 383.3 kB / 330.8 MB, free: 9.672 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006975/0.007656, allocations: 0.9973 MB / 331.8 MB, free: 8.668 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003131/0.007969, allocations: 267.4 kB / 332.1 MB, free: 8.387 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005126/0.008482, allocations: 0.4988 MB / 332.6 MB, free: 7.887 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002194/0.008701, allocations: 235.1 kB / 332.8 MB, free: 7.656 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.706e-05/0.008769, allocations: 72 kB / 332.9 MB, free: 7.586 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.008927, allocations: 119.9 kB / 333 MB, free: 7.469 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.324e-05/0.009011, allocations: 175.2 kB / 333.1 MB, free: 7.297 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.009176, allocations: 267.2 kB / 333.4 MB, free: 7.035 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007668/0.009943, allocations: 1.101 MB / 334.5 MB, free: 5.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.009946, allocations: 0 / 334.5 MB, free: 5.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.009947, allocations: 0 / 334.5 MB, free: 5.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.00996, allocations: 0 / 334.5 MB, free: 5.93 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.0009984/0.01096, allocations: 1.088 MB / 335.6 MB, free: 4.812 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.011, allocations: 12.03 kB / 335.6 MB, free: 4.801 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.221e-05/0.01109, allocations: 126.9 kB / 335.7 MB, free: 4.668 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.01125, allocations: 123.3 kB / 335.9 MB, free: 4.547 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005881/0.01183, allocations: 0.5473 MB / 336.4 MB, free: 3.973 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/0.01187, allocations: 62 kB / 336.5 MB, free: 3.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.781e-05/0.01194, allocations: 83.94 kB / 336.5 MB, free: 3.828 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007972/0.01273, allocations: 0.8521 MB / 337.4 MB, free: 2.867 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.01276, allocations: 7.938 kB / 337.4 MB, free: 2.859 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.824e-05/0.0128, allocations: 43.94 kB / 337.4 MB, free: 2.816 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.01281, allocations: 20 kB / 337.5 MB, free: 2.797 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005451/0.01335, allocations: 467.3 kB / 337.9 MB, free: 2.336 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002175/0.01553, allocations: 4.163 MB / 342.1 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003465/0.01588, allocations: 284.3 kB / 342.4 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.01602, allocations: 137.5 kB / 342.5 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.957e-05/0.01611, allocations: 12.38 kB / 342.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.01613, allocations: 38.94 kB / 342.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=46): time 1.553e-06/0.01613, allocations: 0 / 342.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=57): time 0.001909/0.01804, allocations: 1.615 MB / 344.2 MB, free: 11.83 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.935e-05/0.01807, allocations: 55.91 kB / 344.2 MB, free: 11.76 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003797/0.01845, allocations: 0.5508 MB / 344.8 MB, free: 11.2 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.01847, allocations: 37.7 kB / 344.8 MB, free: 11.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.01868, allocations: 487.7 kB / 345.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.795e-05/0.01878, allocations: 226.1 kB / 345.5 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.01889, allocations: 134.6 kB / 345.6 MB, free: 10.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.019, allocations: 386.7 kB / 346 MB, free: 9.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.01918, allocations: 157.9 kB / 346.2 MB, free: 9.773 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/0.01948, allocations: 455.3 kB / 346.6 MB, free: 9.199 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000525/0.02, allocations: 0.6683 MB / 347.3 MB, free: 8.395 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.02001, allocations: 4 kB / 347.3 MB, free: 8.391 MB / 314.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0006784/0.02068, allocations: 0.7434 MB / 348 MB, free: 7.641 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.0207, allocations: 15.94 kB / 348 MB, free: 7.625 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.02071, allocations: 8.875 kB / 348 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000116/0.02083, allocations: 48.84 kB / 348.1 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003127/0.02114, allocations: 183.7 kB / 348.3 MB, free: 7.387 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008656/0.02201, allocations: 1.57 MB / 349.8 MB, free: 5.707 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.02216, allocations: 28 kB / 349.9 MB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.851e-05/0.02219, allocations: 36 kB / 349.9 MB, free: 5.645 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.0001836/0.02237, allocations: 233.5 kB / 350.1 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.262e-05/0.02243, allocations: 79.62 kB / 350.2 MB, free: 5.328 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.431e-05/0.02249, allocations: 71.08 kB / 350.3 MB, free: 5.258 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.02249, allocations: 12.12 kB / 350.3 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.0225, allocations: 7.984 kB / 350.3 MB, free: 5.238 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.0225, allocations: 0 / 350.3 MB, free: 5.238 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.02364, allocations: 1.277 MB / 351.6 MB, free: 3.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.02364, allocations: 0 / 351.6 MB, free: 3.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.0239, allocations: 119.8 kB / 351.7 MB, free: 3.758 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.957e-05/0.02395, allocations: 24.86 kB / 351.7 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.02397, allocations: 15.98 kB / 351.7 MB, free: 3.715 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005291/0.02449, allocations: 1.26 MB / 353 MB, free: 2.336 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.0245, allocations: 7.938 kB / 353 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006387/0.02514, allocations: 0.7691 MB / 353.8 MB, free: 1.504 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.31e-05/0.02518, allocations: 59.62 kB / 353.8 MB, free: 1.445 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.147e-05/0.02521, allocations: 31.8 kB / 353.9 MB, free: 1.414 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.02531, allocations: 12.19 kB / 353.9 MB, free: 1.402 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.059e-05/0.02536, allocations: 39.94 kB / 353.9 MB, free: 1.363 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.02538, allocations: 28.02 kB / 353.9 MB, free: 1.336 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002381/0.02562, allocations: 359.1 kB / 354.3 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02562, allocations: 4 kB / 354.3 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003527/0.02597, allocations: 136 kB / 354.4 MB, free: 0.8516 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.0008292/0.0268, allocations: 1.336 MB / 355.8 MB, free: 15.45 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000577/0.02738, allocations: 0.5652 MB / 356.3 MB, free: 14.87 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.02738, allocations: 0 / 356.3 MB, free: 14.87 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.02761, allocations: 302.5 kB / 356.6 MB, free: 14.56 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.02799, allocations: 104 kB / 356.7 MB, free: 14.46 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004624/0.03261, allocations: 5.853 MB / 362.6 MB, free: 8.199 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.03285, allocations: 374.3 kB / 362.9 MB, free: 7.805 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001602/0.03301, allocations: 82.02 kB / 363 MB, free: 7.723 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.03326, allocations: 324.4 kB / 363.3 MB, free: 7.406 MB / 330.7 MB Notification: Performance of SimCode: time 8.32e-07/0.03327, allocations: 0 / 363.3 MB, free: 7.406 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.06072, allocations: 12.72 MB / 376.1 MB, free: 10.93 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.577/7.638, allocations: 2.922 kB / 376.1 MB, free: 10.93 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass2b.v from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3a.s in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3a.s from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3a.v in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3a.v from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3b.s in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3b.s from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3b.v in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3b.v from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.325644335709512]