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.001323/0.001323, allocations: 112 kB / 20.43 MB, free: 1.309 MB / 14.72 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.001434/0.001434, allocations: 191.2 kB / 23.72 MB, free: 4.559 MB / 14.72 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 1.412/1.412, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001552/0.001552, allocations: 47.92 kB / 370.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2843, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006426/0.2907, allocations: 4.606 MB / 427.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.2935, allocations: 1.345 MB / 428.6 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000425/0.2939, allocations: 31.75 kB / 428.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000429/0.2943, allocations: 178.2 kB / 428.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003685/0.2947, allocations: 170.4 kB / 428.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007699/0.2955, allocations: 371.3 kB / 429.3 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001071/0.2965, allocations: 0.9821 MB / 430.3 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004551/0.297, allocations: 279.4 kB / 430.6 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003972/0.2974, allocations: 342.6 kB / 430.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003911/0.2978, allocations: 350 kB / 431.2 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.5e-05/0.2979, allocations: 72 kB / 431.3 MB, free: 5.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.2981, allocations: 112 kB / 431.4 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.2983, allocations: 179.3 kB / 431.6 MB, free: 5.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000361/0.2986, allocations: 425.5 kB / 432 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001247/0.2999, allocations: 1.105 MB / 433.1 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2999, allocations: 0 / 433.1 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2999, allocations: 0 / 433.1 MB, free: 4.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.2999, allocations: 3.938 kB / 433.1 MB, free: 4.059 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.001726/0.3016, allocations: 1.1 MB / 434.2 MB, free: 2.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.3017, allocations: 11.97 kB / 434.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001413/0.3018, allocations: 126.9 kB / 434.4 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001491/0.302, allocations: 111.3 kB / 434.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.303, allocations: 0.5512 MB / 435 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.161e-05/0.303, allocations: 57.98 kB / 435.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.3032, allocations: 87.95 kB / 435.2 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.3045, allocations: 0.8442 MB / 436 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.964e-05/0.3045, allocations: 15.88 kB / 436 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.967e-05/0.3046, allocations: 40 kB / 436.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.3046, allocations: 20 kB / 436.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000864/0.3055, allocations: 471.3 kB / 436.5 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004247/0.3097, allocations: 4.322 MB / 440.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006202/0.3103, allocations: 279.5 kB / 441.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002355/0.3106, allocations: 137.3 kB / 441.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/0.3107, allocations: 16.36 kB / 441.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.3108, allocations: 38.92 kB / 441.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.023e-06/0.3108, allocations: 0 / 441.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003317/0.3141, allocations: 1.596 MB / 442.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.3141, allocations: 59.84 kB / 443 MB, free: 9.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006315/0.3148, allocations: 0.5431 MB / 443.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.945e-05/0.3148, allocations: 33.7 kB / 443.5 MB, free: 9.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003952/0.3152, allocations: 483.8 kB / 444 MB, free: 8.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/0.3154, allocations: 230.1 kB / 444.2 MB, free: 8.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/0.3156, allocations: 142.6 kB / 444.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.3158, allocations: 382.8 kB / 444.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/0.3161, allocations: 157.9 kB / 444.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005636/0.3166, allocations: 463.1 kB / 445.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009146/0.3176, allocations: 0.6673 MB / 446 MB, free: 6.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3176, allocations: 4 kB / 446 MB, free: 6.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001162/0.3187, allocations: 0.7426 MB / 446.8 MB, free: 5.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.3187, allocations: 8.188 kB / 446.8 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.3188, allocations: 12 kB / 446.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001835/0.3189, allocations: 48.84 kB / 446.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005732/0.3195, allocations: 179.7 kB / 447 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.3209, allocations: 1.593 MB / 448.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/0.3212, allocations: 24 kB / 448.6 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.416e-05/0.3212, allocations: 36 kB / 448.7 MB, free: 3.602 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.0003198/0.3216, allocations: 225.7 kB / 448.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.669e-05/0.3217, allocations: 83.41 kB / 449 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001311/0.3218, allocations: 83.06 kB / 449.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.3218, allocations: 4 kB / 449.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3218, allocations: 0 / 449.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.411e-06/0.3218, allocations: 7.938 kB / 449.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.3238, allocations: 1.387 MB / 450.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.3238, allocations: 352 / 450.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004697/0.3243, allocations: 123.8 kB / 450.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.523e-05/0.3244, allocations: 24.86 kB / 450.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.3244, allocations: 12.12 kB / 450.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001006/0.3254, allocations: 1.272 MB / 451.9 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3254, allocations: 4 kB / 451.9 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.3265, allocations: 0.7803 MB / 452.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.941e-05/0.3266, allocations: 67.52 kB / 452.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.827e-05/0.3267, allocations: 16 kB / 452.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.3269, allocations: 12 kB / 452.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.056e-05/0.327, allocations: 47.86 kB / 452.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.994e-05/0.327, allocations: 16 kB / 452.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004065/0.3274, allocations: 363.1 kB / 453.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3274, allocations: 0 / 453.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000616/0.328, allocations: 140 kB / 453.3 MB, free: 14.68 MB / 366.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.001404/0.3294, allocations: 1.335 MB / 454.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.3304, allocations: 0.5707 MB / 455.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3304, allocations: 1.688 kB / 455.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004202/0.3308, allocations: 307 kB / 455.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005984/0.3314, allocations: 94.56 kB / 455.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008017/0.3395, allocations: 6.068 MB / 461.7 MB, free: 5.812 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006654/0.3401, allocations: 0.973 MB / 462.7 MB, free: 4.812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000293/0.3404, allocations: 81.94 kB / 462.7 MB, free: 4.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000403/0.3408, allocations: 323.3 kB / 463.1 MB, free: 4.414 MB / 366.1 MB Notification: Performance of SimCode: time 1.183e-06/0.3408, allocations: 0 / 463.1 MB, free: 4.414 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04607/0.3869, allocations: 12.47 MB / 475.5 MB, free: 8.125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.86, allocations: 10.34 kB / 475.5 MB, free: 8.121 MB / 382.1 MB " [Timeout remaining time 647] (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/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) [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: 15.279160410002078]