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.001761/0.001761, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.002293/0.002293, allocations: 186.5 kB / 23.71 MB, free: 4.434 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.404/1.404, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.001612/0.001612, allocations: 51.92 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2381, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006006/0.2441, allocations: 4.104 MB / 426.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002889/0.247, allocations: 1.306 MB / 428 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005261/0.2476, allocations: 31.69 kB / 428 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004471/0.248, allocations: 178.2 kB / 428.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004325/0.2484, allocations: 166.3 kB / 428.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000816/0.2493, allocations: 367.5 kB / 428.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001099/0.2504, allocations: 0.9782 MB / 429.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004796/0.2508, allocations: 263.4 kB / 429.9 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004614/0.2513, allocations: 338.6 kB / 430.3 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003669/0.2517, allocations: 309.9 kB / 430.6 MB, free: 6.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.2518, allocations: 72 kB / 430.6 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002222/0.252, allocations: 112 kB / 430.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.2521, allocations: 179.3 kB / 430.9 MB, free: 5.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002975/0.2524, allocations: 330.1 kB / 431.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001163/0.2536, allocations: 1.11 MB / 432.3 MB, free: 4.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.2536, allocations: 4 kB / 432.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2536, allocations: 4 kB / 432.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.2536, allocations: 0 / 432.4 MB, free: 4.539 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.001606/0.2552, allocations: 1.093 MB / 433.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.2553, allocations: 12.03 kB / 433.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.2554, allocations: 126.9 kB / 433.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.2555, allocations: 111.3 kB / 433.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.2566, allocations: 0.5473 MB / 434.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.24e-05/0.2566, allocations: 58 kB / 434.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.2567, allocations: 87.94 kB / 434.4 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.2581, allocations: 0.8442 MB / 435.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.781e-05/0.2581, allocations: 15.89 kB / 435.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.904e-05/0.2582, allocations: 32 kB / 435.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.2582, allocations: 20 kB / 435.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009196/0.2591, allocations: 467.3 kB / 435.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00404/0.2632, allocations: 4.17 MB / 439.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006041/0.2638, allocations: 283.5 kB / 440.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003167/0.2641, allocations: 137.3 kB / 440.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001371/0.2642, allocations: 16.38 kB / 440.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.2643, allocations: 42.86 kB / 440.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.234e-06/0.2643, allocations: 7.938 kB / 440.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003356/0.2676, allocations: 1.596 MB / 442 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.2677, allocations: 63.84 kB / 442.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006916/0.2684, allocations: 0.5508 MB / 442.6 MB, free: 9.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/0.2684, allocations: 29.7 kB / 442.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003758/0.2688, allocations: 0.4919 MB / 443.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.2689, allocations: 218.1 kB / 443.3 MB, free: 9.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001801/0.2691, allocations: 142.6 kB / 443.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.2693, allocations: 382.8 kB / 443.9 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002989/0.2696, allocations: 157.9 kB / 444 MB, free: 8.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005305/0.2701, allocations: 463.1 kB / 444.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008784/0.271, allocations: 0.6634 MB / 445.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-06/0.271, allocations: 7.938 kB / 445.1 MB, free: 7 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001249/0.2723, allocations: 0.735 MB / 445.9 MB, free: 6.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.2723, allocations: 8 kB / 445.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.2723, allocations: 12 kB / 445.9 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001762/0.2725, allocations: 52.81 kB / 445.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005702/0.2731, allocations: 183.7 kB / 446.1 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/0.2746, allocations: 1.578 MB / 447.7 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003893/0.275, allocations: 28 kB / 447.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.76e-05/0.275, allocations: 32.19 kB / 447.8 MB, free: 4.25 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.0003478/0.2753, allocations: 241.5 kB / 448 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.2755, allocations: 79.47 kB / 448.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001372/0.2756, allocations: 75.08 kB / 448.1 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.2756, allocations: 8 kB / 448.1 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.2756, allocations: 3.984 kB / 448.2 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2756, allocations: 0 / 448.2 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002088/0.2777, allocations: 1.279 MB / 449.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.2777, allocations: 4 kB / 449.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004775/0.2782, allocations: 119.8 kB / 449.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.425e-05/0.2783, allocations: 20.91 kB / 449.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.784e-05/0.2783, allocations: 23.97 kB / 449.6 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009892/0.2793, allocations: 1.261 MB / 450.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.2793, allocations: 7.938 kB / 450.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.2804, allocations: 0.788 MB / 451.7 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.2805, allocations: 59.53 kB / 451.7 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.624e-05/0.2806, allocations: 15.98 kB / 451.7 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.2808, allocations: 16.08 kB / 451.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.288e-05/0.2809, allocations: 43.97 kB / 451.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-05/0.2809, allocations: 19.98 kB / 451.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004567/0.2814, allocations: 367.3 kB / 452.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2814, allocations: 0 / 452.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006934/0.2821, allocations: 139.9 kB / 452.3 MB, free: 15.43 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.001409/0.2835, allocations: 1.336 MB / 453.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.2845, allocations: 0.5684 MB / 454.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.2845, allocations: 0 / 454.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004119/0.2849, allocations: 294.4 kB / 454.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006316/0.2856, allocations: 100.1 kB / 454.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008126/0.2937, allocations: 6.064 MB / 460.7 MB, free: 6.578 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.2941, allocations: 374.2 kB / 461 MB, free: 6.188 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002774/0.2944, allocations: 93.91 kB / 461.1 MB, free: 6.094 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004151/0.2948, allocations: 327.3 kB / 461.4 MB, free: 5.773 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.2948, allocations: 0 / 461.4 MB, free: 5.773 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04744/0.3422, allocations: 12.55 MB / 474 MB, free: 9.469 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.56, allocations: 7.078 kB / 474 MB, free: 9.465 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.001688168849796]