Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.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.001711/0.001711, allocations: 123 kB / 17.79 MB, free: 5.281 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.001838/0.001838, allocations: 189.2 kB / 20.73 MB, free: 2.352 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.414/1.414, allocations: 225.6 MB / 249.1 MB, free: 3.641 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.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 51.92 kB / 365.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1064, allocations: 52.14 MB / 417.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.003699/0.1101, allocations: 2.433 MB / 420.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004933/0.1106, allocations: 243 kB / 420.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.887e-05/0.1107, allocations: 4 kB / 420.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.1108, allocations: 47.52 kB / 420.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001518/0.111, allocations: 87.27 kB / 420.6 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.1111, allocations: 55.92 kB / 420.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003062/0.1114, allocations: 294.6 kB / 420.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.1116, allocations: 69.7 kB / 421 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.1117, allocations: 111.6 kB / 421.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.1119, allocations: 123.5 kB / 421.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.544e-05/0.1119, allocations: 20 kB / 421.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.957e-05/0.112, allocations: 31.94 kB / 421.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.77e-05/0.112, allocations: 47.84 kB / 421.3 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.1121, allocations: 135.3 kB / 421.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003312/0.1125, allocations: 286.8 kB / 421.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1125, allocations: 0 / 421.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1125, allocations: 4 kB / 421.7 MB, free: 8.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1125, allocations: 3.938 kB / 421.7 MB, free: 8.676 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0007758/0.1133, allocations: 0.5534 MB / 422.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.1133, allocations: 15.97 kB / 422.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.541e-05/0.1134, allocations: 54.73 kB / 422.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.28e-05/0.1134, allocations: 28.75 kB / 422.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003138/0.1137, allocations: 245.4 kB / 422.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/0.1138, allocations: 24.94 kB / 422.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.216e-05/0.1138, allocations: 28.33 kB / 422.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000396/0.1142, allocations: 248 kB / 422.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.1142, allocations: 3.938 kB / 422.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.7e-05/0.1143, allocations: 12 kB / 422.9 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1143, allocations: 4 kB / 422.9 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002752/0.1145, allocations: 155.9 kB / 423.1 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.1156, allocations: 0.801 MB / 423.9 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004927/0.1161, allocations: 275.7 kB / 424.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.1163, allocations: 126.5 kB / 424.3 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.1163, allocations: 4 kB / 424.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.1164, allocations: 38.5 kB / 424.3 MB, free: 5.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.322e-06/0.1164, allocations: 0 / 424.3 MB, free: 5.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002824/0.1192, allocations: 1.951 MB / 426.3 MB, free: 3.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.695e-05/0.1193, allocations: 114.8 kB / 426.4 MB, free: 3.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000192/0.1194, allocations: 191.2 kB / 426.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.1195, allocations: 29.7 kB / 426.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.1196, allocations: 144.9 kB / 426.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.1197, allocations: 166.5 kB / 426.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.1198, allocations: 70.14 kB / 427 MB, free: 2.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.12, allocations: 346.7 kB / 427.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.1201, allocations: 92.84 kB / 427.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.1203, allocations: 158.3 kB / 427.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003825/0.1207, allocations: 278.3 kB / 427.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1207, allocations: 0 / 427.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005066/0.1212, allocations: 338.8 kB / 428.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.1212, allocations: 7.938 kB / 428.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.1212, allocations: 7.984 kB / 428.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.1213, allocations: 4 kB / 428.2 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003303/0.1216, allocations: 88.78 kB / 428.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1216, allocations: 4 kB / 428.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.1217, allocations: 20.03 kB / 428.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.336e-05/0.1217, allocations: 16 kB / 428.3 MB, free: 1.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (54): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001432/0.1219, allocations: 154.4 kB / 428.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.961e-05/0.122, allocations: 35.75 kB / 428.5 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.1221, allocations: 33.88 kB / 428.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.1221, allocations: 4 kB / 428.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1221, allocations: 0 / 428.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.1221, allocations: 7.984 kB / 428.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.1235, allocations: 1.054 MB / 429.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.1235, allocations: 4 kB / 429.6 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.1239, allocations: 99.77 kB / 429.7 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.1239, allocations: 4 kB / 429.7 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.1239, allocations: 8 kB / 429.7 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/0.1239, allocations: 8 kB / 429.7 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.1239, allocations: 4 kB / 429.7 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008012/0.1247, allocations: 0.7327 MB / 430.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.162e-05/0.1248, allocations: 109 kB / 430.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.616e-05/0.1248, allocations: 8 kB / 430.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/0.125, allocations: 15.98 kB / 430.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.539e-05/0.1251, allocations: 35.84 kB / 430.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/0.1251, allocations: 16 kB / 430.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.1252, allocations: 136.5 kB / 430.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1252, allocations: 4 kB / 430.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000425/0.1256, allocations: 72 kB / 430.8 MB, free: 14.83 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper2.s_rel,damper2.v_rel,damper1.s_rel,damper1.v_rel) * 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 (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001123/0.1268, allocations: 1.282 MB / 432.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005015/0.1273, allocations: 239.8 kB / 432.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1273, allocations: 0 / 432.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002825/0.1275, allocations: 139.7 kB / 432.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007801/0.1283, allocations: 83.64 kB / 432.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004007/0.1323, allocations: 3.274 MB / 435.8 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.1328, allocations: 0.7722 MB / 436.6 MB, free: 8.789 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000124/0.1329, allocations: 38.94 kB / 436.6 MB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.133, allocations: 91.42 kB / 436.7 MB, free: 8.66 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.133, allocations: 0 / 436.7 MB, free: 8.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03069/0.1637, allocations: 5.97 MB / 442.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.251/8.415, allocations: 23.47 kB / 442.7 MB, free: 2.789 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_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_Damper.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Damper/Damper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable springDamper3.v_rel in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.csv. Warning: Get data of variable springDamper3.v_rel from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.98914973018691]