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.00152/0.00152, allocations: 120.1 kB / 17.78 MB, free: 5.23 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.001565/0.001565, allocations: 198.8 kB / 20.73 MB, free: 2.289 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.487/1.487, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.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.001523/0.001523, allocations: 47.92 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1146, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006065/0.1207, allocations: 4.599 MB / 422.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.1233, allocations: 1.329 MB / 423.7 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003468/0.1237, allocations: 35.69 kB / 423.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004176/0.1241, allocations: 182.2 kB / 423.9 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003379/0.1244, allocations: 162.3 kB / 424.1 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007504/0.1252, allocations: 367.5 kB / 424.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001026/0.1262, allocations: 0.9781 MB / 425.4 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004678/0.1267, allocations: 283 kB / 425.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003992/0.1271, allocations: 342.6 kB / 426 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003706/0.1275, allocations: 346 kB / 426.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.76e-05/0.1276, allocations: 75.94 kB / 426.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002184/0.1278, allocations: 111.9 kB / 426.5 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.1279, allocations: 171.3 kB / 426.7 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003697/0.1283, allocations: 429.5 kB / 427.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001179/0.1295, allocations: 1.112 MB / 428.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1295, allocations: 0 / 428.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1295, allocations: 0 / 428.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.1295, allocations: 0 / 428.2 MB, free: 2.074 MB / 350.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.001671/0.1312, allocations: 1.168 MB / 429.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.1312, allocations: 12.03 kB / 429.4 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001362/0.1313, allocations: 126.9 kB / 429.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.1315, allocations: 111.3 kB / 429.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009863/0.1325, allocations: 0.6312 MB / 430.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.493e-05/0.1325, allocations: 65.94 kB / 430.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.1326, allocations: 79.95 kB / 430.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.134, allocations: 0.8481 MB / 431.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.361e-05/0.134, allocations: 19.88 kB / 431.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.932e-05/0.1341, allocations: 32 kB / 431.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.109e-05/0.1341, allocations: 20 kB / 431.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008901/0.135, allocations: 475.3 kB / 431.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003967/0.139, allocations: 4.378 MB / 436.2 MB, free: 9.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005868/0.1396, allocations: 284.1 kB / 436.5 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.1398, allocations: 129.5 kB / 436.6 MB, free: 9.301 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002299/0.14, allocations: 170.6 kB / 436.8 MB, free: 9.098 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.1401, allocations: 34.92 kB / 436.8 MB, free: 9.055 MB / 366.1 MB Notification: Performance of pre-optimization done (n=46): time 2.064e-06/0.1401, allocations: 0 / 436.8 MB, free: 9.055 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.003487/0.1436, allocations: 1.747 MB / 438.5 MB, free: 7.219 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.1436, allocations: 63.91 kB / 438.6 MB, free: 7.145 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006597/0.1443, allocations: 0.5392 MB / 439.1 MB, free: 6.598 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.1443, allocations: 37.7 kB / 439.2 MB, free: 6.555 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003614/0.1447, allocations: 491.7 kB / 439.7 MB, free: 6.066 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.1448, allocations: 226.1 kB / 439.9 MB, free: 5.844 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.145, allocations: 138.6 kB / 440 MB, free: 5.703 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.1452, allocations: 382.8 kB / 440.4 MB, free: 5.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/0.1455, allocations: 161.9 kB / 440.5 MB, free: 5.164 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005595/0.1461, allocations: 467.2 kB / 441 MB, free: 4.578 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008918/0.147, allocations: 0.6556 MB / 441.7 MB, free: 3.793 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.147, allocations: 4 kB / 441.7 MB, free: 3.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001206/0.1482, allocations: 0.7385 MB / 442.4 MB, free: 3.039 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.1482, allocations: 11.98 kB / 442.4 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.1482, allocations: 12 kB / 442.4 MB, free: 3.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/0.1484, allocations: 44.84 kB / 442.5 MB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.149, allocations: 183.7 kB / 442.6 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/0.1506, allocations: 1.693 MB / 444.3 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002976/0.1509, allocations: 27.98 kB / 444.4 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.1509, allocations: 44.06 kB / 444.4 MB, free: 0.8828 MB / 366.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.0003093/0.1512, allocations: 226.2 kB / 444.6 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.1513, allocations: 75.47 kB / 444.7 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001339/0.1515, allocations: 75.08 kB / 444.8 MB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1515, allocations: 8 kB / 444.8 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.1515, allocations: 0 / 444.8 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1515, allocations: 7.922 kB / 444.8 MB, free: 496 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2463/0.3978, allocations: 1.41 MB / 446.2 MB, free: 29.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.3978, allocations: 3.281 kB / 446.2 MB, free: 29.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004867/0.3983, allocations: 114.7 kB / 446.3 MB, free: 29.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000107/0.3984, allocations: 28.52 kB / 446.3 MB, free: 29.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.724e-05/0.3984, allocations: 14.91 kB / 446.4 MB, free: 29.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006919/0.3991, allocations: 1.371 MB / 447.7 MB, free: 28.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.3991, allocations: 6.875 kB / 447.7 MB, free: 28.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009842/0.4001, allocations: 0.7826 MB / 448.5 MB, free: 28.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.4002, allocations: 142.8 kB / 448.7 MB, free: 27.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.819e-05/0.4002, allocations: 19.42 kB / 448.7 MB, free: 27.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.4004, allocations: 17.09 kB / 448.7 MB, free: 27.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.424e-05/0.4005, allocations: 38.22 kB / 448.7 MB, free: 27.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.507e-05/0.4005, allocations: 18.02 kB / 448.7 MB, free: 27.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003487/0.4009, allocations: 364.2 kB / 449.1 MB, free: 27.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4009, allocations: 2.469 kB / 449.1 MB, free: 27.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006371/0.4015, allocations: 142.9 kB / 449.2 MB, free: 27.83 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.001113/0.4026, allocations: 1.337 MB / 450.6 MB, free: 27.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009303/0.4036, allocations: 0.5661 MB / 451.1 MB, free: 26.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4036, allocations: 1.344 kB / 451.2 MB, free: 26.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003573/0.4039, allocations: 305.3 kB / 451.4 MB, free: 26.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006127/0.4046, allocations: 99.44 kB / 451.5 MB, free: 26.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00775/0.4123, allocations: 6.064 MB / 457.6 MB, free: 23.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005515/0.4129, allocations: 0.9644 MB / 458.6 MB, free: 22.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003143/0.4132, allocations: 91.58 kB / 458.7 MB, free: 22.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003558/0.4135, allocations: 322.1 kB / 459 MB, free: 22.5 MB / 366.1 MB Notification: Performance of SimCode: time 1.352e-06/0.4135, allocations: 0 / 459 MB, free: 22.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04404/0.4576, allocations: 11.95 MB / 470.9 MB, free: 19.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.34, allocations: 7.609 kB / 470.9 MB, free: 19.35 MB / 366.1 MB " [Timeout remaining time 649] (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: 13.95595716824755]