Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.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.001725/0.001725, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 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.002282/0.002282, allocations: 217.1 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Damper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 55.92 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2663, allocations: 49.15 MB / 396.3 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.003508/0.2698, allocations: 2.242 MB / 398.6 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000741/0.2706, allocations: 237.4 kB / 398.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003101/0.2709, allocations: 9.344 kB / 398.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002355/0.2711, allocations: 40.59 kB / 398.9 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003082/0.2714, allocations: 92.42 kB / 398.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002626/0.2717, allocations: 51.41 kB / 399 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004288/0.2721, allocations: 293.1 kB / 399.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.2723, allocations: 71.3 kB / 399.4 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002368/0.2725, allocations: 113.8 kB / 399.5 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002514/0.2728, allocations: 98.3 kB / 399.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.007e-05/0.2729, allocations: 23 kB / 399.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.509e-05/0.2729, allocations: 22.53 kB / 399.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.071e-05/0.273, allocations: 60 kB / 399.7 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.2732, allocations: 109.2 kB / 399.8 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004742/0.2737, allocations: 291.5 kB / 400.1 MB, free: 6.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.2737, allocations: 1.922 kB / 400.1 MB, free: 6.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.2737, allocations: 3.938 kB / 400.1 MB, free: 6.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.578e-05/0.2737, allocations: 0 / 400.1 MB, free: 6.59 MB / 318.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.0009801/0.2747, allocations: 482.9 kB / 400.5 MB, free: 6.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.251e-05/0.2747, allocations: 13.58 kB / 400.5 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.746e-05/0.2748, allocations: 60.81 kB / 400.6 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.9e-05/0.2749, allocations: 30.94 kB / 400.6 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00043/0.2753, allocations: 187.8 kB / 400.8 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.2753, allocations: 19.09 kB / 400.8 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.102e-05/0.2754, allocations: 28.7 kB / 400.9 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004409/0.2758, allocations: 247.5 kB / 401.1 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.2759, allocations: 13.73 kB / 401.1 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.373e-05/0.2759, allocations: 10.66 kB / 401.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.2759, allocations: 10.03 kB / 401.1 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003038/0.2762, allocations: 156.1 kB / 401.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.2772, allocations: 0.7089 MB / 402 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004912/0.2777, allocations: 274.1 kB / 402.3 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/0.2779, allocations: 121.3 kB / 402.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.278, allocations: 4.094 kB / 402.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/0.278, allocations: 38.3 kB / 402.4 MB, free: 4.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 1.943e-06/0.278, allocations: 5.031 kB / 402.4 MB, free: 4.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.002405/0.2804, allocations: 1.52 MB / 404 MB, free: 3.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.2804, allocations: 111.8 kB / 404.1 MB, free: 3.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002238/0.2807, allocations: 194.5 kB / 404.3 MB, free: 3.539 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.2807, allocations: 40.23 kB / 404.3 MB, free: 3.496 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.753e-05/0.2808, allocations: 138.3 kB / 404.4 MB, free: 3.375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.2809, allocations: 174.8 kB / 404.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.281, allocations: 72.8 kB / 404.7 MB, free: 3.191 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.093e-05/0.2811, allocations: 337.7 kB / 405 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.2812, allocations: 86.83 kB / 405.1 MB, free: 2.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.2814, allocations: 157.9 kB / 405.2 MB, free: 2.738 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003799/0.2818, allocations: 274.5 kB / 405.5 MB, free: 2.574 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2818, allocations: 4.969 kB / 405.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005236/0.2824, allocations: 339.8 kB / 405.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.2824, allocations: 13.09 kB / 405.9 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.2824, allocations: 1.25 kB / 405.9 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.614e-05/0.2824, allocations: 4.094 kB / 405.9 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003621/0.2828, allocations: 94.75 kB / 406 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.2828, allocations: 4.594 kB / 406 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.2829, allocations: 10.38 kB / 406 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.2829, allocations: 14.84 kB / 406 MB, free: 2.391 MB / 318.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.0001367/0.2831, allocations: 147.7 kB / 406.1 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.801e-05/0.2832, allocations: 35.61 kB / 406.2 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.689e-05/0.2832, allocations: 41.36 kB / 406.2 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.2833, allocations: 5.562 kB / 406.2 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.2833, allocations: 1.094 kB / 406.2 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.2833, allocations: 7.516 kB / 406.2 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.2846, allocations: 0.9785 MB / 407.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.2846, allocations: 2.75 kB / 407.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003599/0.285, allocations: 96.25 kB / 407.3 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.216e-06/0.285, allocations: 4.125 kB / 407.3 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.285, allocations: 11 kB / 407.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.311e-06/0.285, allocations: 5.5 kB / 407.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.285, allocations: 3.219 kB / 407.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007217/0.2857, allocations: 0.7256 MB / 408 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.09e-05/0.2858, allocations: 32.19 kB / 408.1 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.293e-05/0.2858, allocations: 18.78 kB / 408.1 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.286, allocations: 8.125 kB / 408.1 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.2861, allocations: 41.7 kB / 408.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.2861, allocations: 11.52 kB / 408.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001079/0.2862, allocations: 143.4 kB / 408.3 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2862, allocations: 0 / 408.3 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004798/0.2867, allocations: 76.06 kB / 408.4 MB, free: 0.7734 MB / 318.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.0009835/0.2877, allocations: 1.271 MB / 409.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000507/0.2882, allocations: 250.8 kB / 409.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.2882, allocations: 1.25 kB / 409.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.2884, allocations: 137.5 kB / 410 MB, free: 15.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007518/0.2892, allocations: 79.34 kB / 410.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00488/0.294, allocations: 3.281 MB / 413.4 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/0.2943, allocations: 164.8 kB / 413.5 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001972/0.2944, allocations: 35.94 kB / 413.6 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.2946, allocations: 93.56 kB / 413.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of SimCode: time 1.082e-06/0.2946, allocations: 0 / 413.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04061/0.3352, allocations: 6.652 MB / 420.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12, allocations: 14.34 kB / 420.3 MB, free: 9.652 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Damper/Damper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Damper_res.csv. Warning: Get data of variable springDamper3.v_rel from file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.45686242217198]