Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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.002017/0.002017, 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.002554/0.002554, allocations: 214.8 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.501/1.501, allocations: 207.7 MB / 235.3 MB, free: 9.805 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.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",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.001902/0.001902, allocations: 51.92 kB / 347.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2575, allocations: 49.16 MB / 396.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004937/0.2624, allocations: 4.086 MB / 400.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002619/0.265, allocations: 1.339 MB / 401.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004739/0.2655, allocations: 29.75 kB / 401.8 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000399/0.2659, allocations: 181 kB / 402 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003835/0.2663, allocations: 162.6 kB / 402.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008261/0.2671, allocations: 374.4 kB / 402.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008905/0.268, allocations: 0.9791 MB / 403.5 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003808/0.2684, allocations: 265.9 kB / 403.7 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003238/0.2687, allocations: 342.2 kB / 404.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000288/0.269, allocations: 300.4 kB / 404.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.936e-05/0.2691, allocations: 71.38 kB / 404.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002117/0.2693, allocations: 124.7 kB / 404.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.937e-05/0.2694, allocations: 172 kB / 404.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002207/0.2696, allocations: 333 kB / 405 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001161/0.2708, allocations: 1.114 MB / 406.2 MB, free: 2.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.2708, allocations: 0.7969 kB / 406.2 MB, free: 2.887 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2708, allocations: 3.938 kB / 406.2 MB, free: 2.883 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.41e-05/0.2708, allocations: 0 / 406.2 MB, free: 2.883 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001489/0.2723, allocations: 1.098 MB / 407.3 MB, free: 2.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.2724, allocations: 14.28 kB / 407.3 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001168/0.2725, allocations: 122.6 kB / 407.4 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.2726, allocations: 111.5 kB / 407.5 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000924/0.2735, allocations: 0.5541 MB / 408.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.433e-05/0.2736, allocations: 57.62 kB / 408.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.891e-05/0.2737, allocations: 89.19 kB / 408.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.2748, allocations: 0.8439 MB / 409 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.619e-05/0.2749, allocations: 8.406 kB / 409.1 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.122e-05/0.2749, allocations: 38.55 kB / 409.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.891e-05/0.2749, allocations: 20.91 kB / 409.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008232/0.2758, allocations: 470.8 kB / 409.6 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003672/0.2794, allocations: 4.172 MB / 413.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005679/0.28, allocations: 293 kB / 414 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002367/0.2802, allocations: 135.1 kB / 414.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001206/0.2804, allocations: 12.88 kB / 414.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.2804, allocations: 36.44 kB / 414.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.254e-06/0.2804, allocations: 1.344 kB / 414.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003279/0.2837, allocations: 1.605 MB / 415.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.2837, allocations: 62.47 kB / 415.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006271/0.2843, allocations: 0.5468 MB / 416.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.2844, allocations: 35.48 kB / 416.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003616/0.2847, allocations: 491.8 kB / 416.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.2849, allocations: 222.9 kB / 417.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.2851, allocations: 137.8 kB / 417.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.2853, allocations: 382.4 kB / 417.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.2856, allocations: 155.7 kB / 417.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005227/0.2861, allocations: 461.8 kB / 418.3 MB, free: 9.746 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008869/0.287, allocations: 0.667 MB / 418.9 MB, free: 9.168 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.287, allocations: 2.125 kB / 418.9 MB, free: 9.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.00118/0.2882, allocations: 0.7396 MB / 419.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.2882, allocations: 8.906 kB / 419.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.2882, allocations: 9.719 kB / 419.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001654/0.2884, allocations: 47.28 kB / 419.7 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005636/0.2889, allocations: 185.5 kB / 419.9 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001445/0.2904, allocations: 1.586 MB / 421.5 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00033/0.2907, allocations: 28.41 kB / 421.5 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.2908, allocations: 38.12 kB / 421.6 MB, free: 7.141 MB / 334.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.000356/0.2911, allocations: 224.9 kB / 421.8 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.2912, allocations: 78.09 kB / 421.9 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001358/0.2914, allocations: 80.67 kB / 421.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2914, allocations: 5 kB / 422 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.2914, allocations: 1.219 kB / 422 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.2914, allocations: 3.984 kB / 422 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.2934, allocations: 1.279 MB / 423.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.2934, allocations: 2.75 kB / 423.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004649/0.2938, allocations: 119.8 kB / 423.4 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.923e-05/0.2939, allocations: 22.48 kB / 423.4 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.92e-05/0.294, allocations: 19.08 kB / 423.4 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0011/0.2951, allocations: 1.265 MB / 424.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.2951, allocations: 3.641 kB / 424.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.2963, allocations: 0.7869 MB / 425.5 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.2965, allocations: 59.5 kB / 425.5 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.232e-05/0.2966, allocations: 14.47 kB / 425.5 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.2968, allocations: 17.52 kB / 425.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.944e-05/0.2969, allocations: 43.47 kB / 425.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.2969, allocations: 16.95 kB / 425.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005004/0.2974, allocations: 362.8 kB / 426 MB, free: 3.738 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2974, allocations: 0 / 426 MB, free: 3.738 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008294/0.2982, allocations: 137.6 kB / 426.1 MB, free: 3.719 MB / 334.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.001474/0.2997, allocations: 1.342 MB / 427.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.3007, allocations: 0.5678 MB / 428 MB, free: 2.234 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.3007, allocations: 5.75 kB / 428 MB, free: 2.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004162/0.3012, allocations: 299 kB / 428.3 MB, free: 1.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006888/0.3018, allocations: 99.27 kB / 428.4 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008347/0.3102, allocations: 6.065 MB / 434.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.3106, allocations: 374.2 kB / 434.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002964/0.3109, allocations: 93.84 kB / 434.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003946/0.3113, allocations: 327.3 kB / 435.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3113, allocations: 0 / 435.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04674/0.358, allocations: 12.56 MB / 447.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.31, allocations: 3.953 kB / 447.8 MB, free: 13.91 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass2b.v from file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3a.s in file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3a.s from file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3a.v in file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3a.v from file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3b.s in file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3b.s from file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable mass3b.v in file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable mass3b.v from file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.857870954088867]