Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_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.00177/0.00177, allocations: 104.8 kB / 16.92 MB, free: 5.855 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.001959/0.001959, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.687/2.687, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 43.95 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1833, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.008539/0.192, allocations: 2.415 MB / 352.6 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.1944, allocations: 0.5764 MB / 353.2 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005871/0.195, allocations: 4 kB / 353.2 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004205/0.1956, allocations: 43.59 kB / 353.2 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004072/0.196, allocations: 59.42 kB / 353.3 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004554/0.1965, allocations: 63.86 kB / 353.3 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007315/0.1972, allocations: 258.8 kB / 353.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003641/0.1976, allocations: 89.36 kB / 353.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003149/0.1979, allocations: 103.6 kB / 353.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003781/0.1983, allocations: 103.5 kB / 353.9 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.735e-05/0.1984, allocations: 20 kB / 353.9 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.471e-05/0.1985, allocations: 24 kB / 353.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.739e-05/0.1986, allocations: 47.84 kB / 354 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003485/0.199, allocations: 123.4 kB / 354.1 MB, free: 384 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006566/0.1997, allocations: 247.3 kB / 354.3 MB, free: 136 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.278e-06/0.1997, allocations: 4 kB / 354.3 MB, free: 132 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1997, allocations: 0 / 354.3 MB, free: 132 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.008e-05/0.1998, allocations: 0 / 354.3 MB, free: 132 kB / 286.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.001566/0.2013, allocations: 0.5224 MB / 354.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.136e-05/0.2014, allocations: 8.031 kB / 354.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001132/0.2015, allocations: 54.73 kB / 354.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.2016, allocations: 28.59 kB / 354.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004879/0.2021, allocations: 237.7 kB / 355.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.2022, allocations: 16.81 kB / 355.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.486e-05/0.2023, allocations: 20.38 kB / 355.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006551/0.2029, allocations: 221.1 kB / 355.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.056e-05/0.203, allocations: 7.938 kB / 355.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.203, allocations: 4 kB / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.631e-05/0.2031, allocations: 4 kB / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006285/0.2037, allocations: 144.4 kB / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.2061, allocations: 0.7947 MB / 356.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007632/0.2069, allocations: 205 kB / 356.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004257/0.2074, allocations: 101.7 kB / 356.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.09e-05/0.2074, allocations: 4.188 kB / 356.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.081e-05/0.2075, allocations: 46.44 kB / 356.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 3.396e-06/0.2075, allocations: 0 / 356.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.003122/0.2107, allocations: 0.8507 MB / 357.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/0.2108, allocations: 81.11 kB / 357.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002952/0.2111, allocations: 182.2 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.885e-05/0.2112, allocations: 29.7 kB / 357.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.2114, allocations: 144.4 kB / 358 MB, free: 12.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.2116, allocations: 90.64 kB / 358.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.2117, allocations: 49.7 kB / 358.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.212, allocations: 338.8 kB / 358.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002605/0.2123, allocations: 63.97 kB / 358.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003827/0.2127, allocations: 112.7 kB / 358.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005785/0.2133, allocations: 188.2 kB / 358.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.2133, allocations: 7.938 kB / 358.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008944/0.2142, allocations: 248.4 kB / 359.1 MB, free: 11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.9e-05/0.2142, allocations: 11.12 kB / 359.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.2143, allocations: 0 / 359.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.465e-05/0.2143, allocations: 8.094 kB / 359.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005016/0.2148, allocations: 59.91 kB / 359.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.794e-05/0.2149, allocations: 80 / 359.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.2151, allocations: 15.94 kB / 359.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.677e-05/0.2152, allocations: 11.98 kB / 359.2 MB, free: 10.89 MB / 302.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 0.0002217/0.2155, allocations: 145.7 kB / 359.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.2156, allocations: 23.66 kB / 359.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.977e-05/0.2157, allocations: 25.88 kB / 359.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.2157, allocations: 8 kB / 359.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/0.2158, allocations: 0 / 359.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.2158, allocations: 7.969 kB / 359.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/0.2174, allocations: 0.5826 MB / 360 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.2174, allocations: 0 / 360 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005199/0.218, allocations: 55.95 kB / 360 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/0.218, allocations: 4 kB / 360 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.611e-05/0.218, allocations: 8 kB / 360 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/0.218, allocations: 7.875 kB / 360 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.2181, allocations: 4 kB / 360 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.2193, allocations: 489 kB / 360.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.2195, allocations: 92.92 kB / 360.6 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.624e-05/0.2196, allocations: 12.03 kB / 360.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.2199, allocations: 11.94 kB / 360.6 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.22, allocations: 23.91 kB / 360.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.22, allocations: 8 kB / 360.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002554/0.2203, allocations: 136.3 kB / 360.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.286e-06/0.2203, allocations: 0 / 360.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006255/0.2209, allocations: 47.94 kB / 360.8 MB, free: 9.105 MB / 302.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.001524/0.2225, allocations: 1.038 MB / 361.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007462/0.2232, allocations: 192.2 kB / 362.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.2233, allocations: 0 / 362.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000288/0.2236, allocations: 106.5 kB / 362.2 MB, free: 7.738 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009397/0.2245, allocations: 35.98 kB / 362.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00616/0.2307, allocations: 2.619 MB / 364.8 MB, free: 4.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006215/0.2314, allocations: 0.7518 MB / 365.6 MB, free: 4.184 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001916/0.2316, allocations: 21.94 kB / 365.6 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/0.2318, allocations: 75.41 kB / 365.7 MB, free: 4.09 MB / 302.1 MB Notification: Performance of SimCode: time 2.455e-06/0.2318, allocations: 0 / 365.7 MB, free: 4.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3868/0.6186, allocations: 4.288 MB / 370 MB, free: 26.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.55, allocations: 2.594 kB / 370 MB, free: 26.11 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches