Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.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.00189/0.00189, allocations: 109.9 kB / 21.18 MB, free: 0.7188 MB / 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.002462/0.002462, allocations: 216.7 kB / 24.49 MB, free: 4.094 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.67/1.67, allocations: 207.6 MB / 235.3 MB, free: 10 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.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",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.002605/0.002605, allocations: 51.94 kB / 347.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2899, allocations: 49.16 MB / 396.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003378/0.2933, allocations: 2.424 MB / 398.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.2943, allocations: 0.6405 MB / 399.4 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.2944, allocations: 3.469 kB / 399.4 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001648/0.2946, allocations: 38.78 kB / 399.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.2947, allocations: 68.23 kB / 399.5 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002546/0.295, allocations: 57.83 kB / 399.6 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002989/0.2953, allocations: 257.7 kB / 399.8 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.2954, allocations: 81.45 kB / 399.9 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.2956, allocations: 95.86 kB / 400 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.2958, allocations: 113.2 kB / 400.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.09e-05/0.2958, allocations: 20.31 kB / 400.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.137e-05/0.2959, allocations: 20 kB / 400.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.636e-05/0.2959, allocations: 45.64 kB / 400.2 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.296, allocations: 117.7 kB / 400.3 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003395/0.2964, allocations: 257.6 kB / 400.6 MB, free: 6.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2964, allocations: 4 kB / 400.6 MB, free: 6.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2964, allocations: 0 / 400.6 MB, free: 6.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2964, allocations: 0.9688 kB / 400.6 MB, free: 6.242 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007502/0.2971, allocations: 457.1 kB / 401 MB, free: 5.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.2972, allocations: 14.91 kB / 401 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.683e-05/0.2972, allocations: 53.94 kB / 401.1 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.516e-05/0.2973, allocations: 30.09 kB / 401.1 MB, free: 5.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.2975, allocations: 170.6 kB / 401.3 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.2976, allocations: 24.91 kB / 401.3 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.447e-05/0.2976, allocations: 22.02 kB / 401.3 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004044/0.298, allocations: 220.9 kB / 401.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.298, allocations: 3.953 kB / 401.5 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.298, allocations: 10.91 kB / 401.5 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.2981, allocations: 5.906 kB / 401.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003274/0.2984, allocations: 141.7 kB / 401.7 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.2994, allocations: 0.739 MB / 402.4 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003792/0.2998, allocations: 198 kB / 402.6 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000219/0.3, allocations: 101.3 kB / 402.7 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.3001, allocations: 2.875 kB / 402.7 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.3001, allocations: 36.19 kB / 402.8 MB, free: 4.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.403e-06/0.3001, allocations: 4 kB / 402.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001434/0.3015, allocations: 0.7106 MB / 403.5 MB, free: 4.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.3016, allocations: 84.39 kB / 403.6 MB, free: 4.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.3017, allocations: 178.9 kB / 403.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.3017, allocations: 31.05 kB / 403.8 MB, free: 3.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.992e-05/0.3018, allocations: 145.1 kB / 403.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.935e-05/0.3018, allocations: 100.1 kB / 404 MB, free: 3.773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.728e-05/0.3019, allocations: 46.66 kB / 404 MB, free: 3.742 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.296e-05/0.3019, allocations: 332.9 kB / 404.4 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.3021, allocations: 66.41 kB / 404.4 MB, free: 3.398 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.3022, allocations: 108 kB / 404.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.3025, allocations: 190.4 kB / 404.7 MB, free: 3.223 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3025, allocations: 3.938 kB / 404.7 MB, free: 3.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003732/0.3029, allocations: 248.3 kB / 405 MB, free: 3.102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.3029, allocations: 8.109 kB / 405 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.3029, allocations: 1.094 kB / 405 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3029, allocations: 2.219 kB / 405 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.3032, allocations: 59.38 kB / 405 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.3032, allocations: 7.406 kB / 405.1 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.3033, allocations: 10.47 kB / 405.1 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.3033, allocations: 11.22 kB / 405.1 MB, free: 3.086 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (32): * Single equations (assignments): 32 * 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 9.067e-05/0.3034, allocations: 141.3 kB / 405.2 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.878e-05/0.3035, allocations: 22.19 kB / 405.2 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.794e-05/0.3035, allocations: 31.77 kB / 405.3 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.3035, allocations: 3.25 kB / 405.3 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.3035, allocations: 1.094 kB / 405.3 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.3036, allocations: 2.844 kB / 405.3 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007437/0.3043, allocations: 0.5525 MB / 405.8 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3043, allocations: 1.094 kB / 405.8 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002576/0.3046, allocations: 62.03 kB / 405.9 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3046, allocations: 2.219 kB / 405.9 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.3046, allocations: 11.06 kB / 405.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3046, allocations: 6.5 kB / 405.9 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3046, allocations: 5.156 kB / 405.9 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005234/0.3051, allocations: 0.493 MB / 406.4 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.967e-05/0.3051, allocations: 15.58 kB / 406.4 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.3052, allocations: 6.812 kB / 406.4 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.3053, allocations: 15.27 kB / 406.4 MB, free: 2.113 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.512e-05/0.3054, allocations: 18.59 kB / 406.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.3054, allocations: 11.73 kB / 406.5 MB, free: 2.105 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.34e-05/0.3055, allocations: 125.9 kB / 406.6 MB, free: 2.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3055, allocations: 4 kB / 406.6 MB, free: 2.016 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003361/0.3058, allocations: 51.34 kB / 406.6 MB, free: 2.008 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.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 (26): * Single equations (assignments): 26 * 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.0007107/0.3065, allocations: 1.028 MB / 407.7 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003819/0.3069, allocations: 183.8 kB / 407.9 MB, free: 1.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3069, allocations: 0 / 407.9 MB, free: 1.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001721/0.3071, allocations: 88.22 kB / 407.9 MB, free: 1.047 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004989/0.3076, allocations: 42.03 kB / 408 MB, free: 1.027 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.3107, allocations: 2.648 MB / 410.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.3111, allocations: 0.7494 MB / 411.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.3112, allocations: 26.11 kB / 411.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.3114, allocations: 71.19 kB / 411.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3114, allocations: 0 / 411.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03526/0.3466, allocations: 4.673 MB / 416.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.54, allocations: 9.219 kB / 416.2 MB, free: 12.31 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_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_Oscillator.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.27363117299683]