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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 114.5 kB / 17.73 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001047, allocations: 187 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 51.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1047, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.004209/0.109, allocations: 2.4 MB / 377 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.1105, allocations: 0.6201 MB / 377.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003281/0.1109, allocations: 4 kB / 377.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002699/0.1112, allocations: 39.58 kB / 377.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003462/0.1116, allocations: 71.34 kB / 377.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.1119, allocations: 59.86 kB / 377.8 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004889/0.1124, allocations: 254.8 kB / 378.1 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.1127, allocations: 97.33 kB / 378.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002615/0.113, allocations: 95.69 kB / 378.3 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002358/0.1132, allocations: 111.5 kB / 378.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.808e-05/0.1133, allocations: 20 kB / 378.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.438e-05/0.1134, allocations: 20 kB / 378.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.1135, allocations: 51.83 kB / 378.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.1137, allocations: 119.4 kB / 378.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004348/0.1141, allocations: 258.9 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.1141, allocations: 0 / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1141, allocations: 0 / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.945e-05/0.1142, allocations: 0 / 378.8 MB, free: 0.8516 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.0009603/0.1151, allocations: 0.5183 MB / 379.4 MB, free: 292 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.1152, allocations: 15.97 kB / 379.4 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.344e-05/0.1153, allocations: 54.73 kB / 379.4 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.916e-05/0.1153, allocations: 28.75 kB / 379.5 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1868/0.3022, allocations: 231.6 kB / 379.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.3022, allocations: 14.45 kB / 379.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.543e-05/0.3023, allocations: 23.22 kB / 379.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004811/0.3028, allocations: 220.3 kB / 379.9 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.3028, allocations: 3.625 kB / 379.9 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.698e-05/0.3029, allocations: 8.156 kB / 379.9 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.3029, allocations: 9.281 kB / 380 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003429/0.3032, allocations: 147.9 kB / 380.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.3044, allocations: 0.7795 MB / 380.9 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003973/0.3048, allocations: 200.5 kB / 381.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002211/0.305, allocations: 111.5 kB / 381.2 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.3051, allocations: 3.266 kB / 381.2 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.3051, allocations: 35.55 kB / 381.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.474e-06/0.3051, allocations: 1.375 kB / 381.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001639/0.3068, allocations: 0.8757 MB / 382.1 MB, free: 11.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.3068, allocations: 84.5 kB / 382.2 MB, free: 11.76 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.307, allocations: 180.2 kB / 382.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.3071, allocations: 31.7 kB / 382.4 MB, free: 11.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.258e-05/0.3071, allocations: 137.2 kB / 382.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.834e-05/0.3072, allocations: 106.8 kB / 382.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.785e-05/0.3073, allocations: 48.66 kB / 382.7 MB, free: 11.37 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.618e-05/0.3074, allocations: 330.9 kB / 383 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.3076, allocations: 63.94 kB / 383.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002341/0.3078, allocations: 112 kB / 383.2 MB, free: 10.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000363/0.3082, allocations: 193.8 kB / 383.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.3082, allocations: 0.7812 kB / 383.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004431/0.3087, allocations: 244.6 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.3087, allocations: 6.656 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3087, allocations: 8.516 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.3087, allocations: 2.938 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002688/0.309, allocations: 58.56 kB / 383.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.309, allocations: 3.156 kB / 383.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.3092, allocations: 12.58 kB / 383.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.3092, allocations: 12.44 kB / 383.7 MB, free: 10.73 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.753e-05/0.3093, allocations: 143.6 kB / 383.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.24e-05/0.3094, allocations: 22.73 kB / 383.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.871e-05/0.3094, allocations: 32.42 kB / 383.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3094, allocations: 2.922 kB / 383.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.3095, allocations: 1.156 kB / 383.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.3095, allocations: 2.344 kB / 383.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008071/0.3103, allocations: 0.5791 MB / 384.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.3103, allocations: 3.156 kB / 384.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.3106, allocations: 59.91 kB / 384.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.3106, allocations: 2.25 kB / 384.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.3106, allocations: 3.547 kB / 384.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.3106, allocations: 5.703 kB / 384.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3106, allocations: 2.312 kB / 384.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006153/0.3112, allocations: 0.4959 MB / 385 MB, free: 9.758 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.027e-05/0.3113, allocations: 104 kB / 385.1 MB, free: 9.648 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.3113, allocations: 11.06 kB / 385.2 MB, free: 9.641 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.3115, allocations: 6.844 kB / 385.2 MB, free: 9.641 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.3116, allocations: 26.88 kB / 385.2 MB, free: 9.629 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.3116, allocations: 10.34 kB / 385.2 MB, free: 9.625 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.929e-05/0.3117, allocations: 130.7 kB / 385.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3117, allocations: 1.312 kB / 385.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003268/0.312, allocations: 50.41 kB / 385.4 MB, free: 9.527 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.0007277/0.3128, allocations: 1.024 MB / 386.4 MB, free: 8.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003906/0.3132, allocations: 185.7 kB / 386.6 MB, free: 8.605 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3132, allocations: 0 / 386.6 MB, free: 8.605 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000165/0.3133, allocations: 95.52 kB / 386.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004761/0.3138, allocations: 45.84 kB / 386.7 MB, free: 8.559 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.3169, allocations: 2.646 MB / 389.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.3171, allocations: 0.7486 MB / 390.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.894e-05/0.3172, allocations: 20.59 kB / 390.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.3173, allocations: 73.77 kB / 390.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3173, allocations: 0 / 390.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02589/0.3432, allocations: 4.4 MB / 394.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.877/8.22, allocations: 1.516 kB / 394.6 MB, free: 5.105 MB / 318.1 MB (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) 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) Reference file matches