Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator") translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 197.8 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 226.5 MB / 244.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008157/0.0008158, allocations: 98.58 kB / 296.7 MB, free: 6.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002421/0.0002422, allocations: 8 kB / 356.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.1979, allocations: 51.3 MB / 408 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.001749/0.1997, allocations: 2.046 MB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006547/0.2004, allocations: 0.5878 MB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.635e-05/0.2005, allocations: 4.562 kB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.595e-05/0.2006, allocations: 24.62 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.246e-05/0.2007, allocations: 61.25 kB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000187/0.2009, allocations: 47.95 kB / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001924/0.2011, allocations: 228.7 kB / 411 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.2013, allocations: 89.42 kB / 411.1 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.2014, allocations: 87.62 kB / 411.2 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.2015, allocations: 91.56 kB / 411.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.2016, allocations: 15.94 kB / 411.3 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.386e-05/0.2016, allocations: 12 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.447e-05/0.2016, allocations: 28.56 kB / 411.4 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.171e-05/0.2017, allocations: 133.2 kB / 411.5 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001443/0.2019, allocations: 177.6 kB / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2019, allocations: 0 / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2019, allocations: 3.984 kB / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.2019, allocations: 4.938 kB / 411.7 MB, free: 24.03 MB / 298.7 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.0005377/0.2025, allocations: 0.4995 MB / 412.2 MB, free: 23.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2025, allocations: 8.031 kB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002006/0.2027, allocations: 48.64 kB / 412.2 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.2029, allocations: 232.6 kB / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.2029, allocations: 16.81 kB / 412.5 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.381e-05/0.2029, allocations: 24.36 kB / 412.5 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003366/0.2033, allocations: 217.3 kB / 412.7 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.2033, allocations: 3.906 kB / 412.7 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.2033, allocations: 4 kB / 412.7 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.2033, allocations: 12 kB / 412.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002593/0.2036, allocations: 151.8 kB / 412.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008641/0.2045, allocations: 0.7988 MB / 413.7 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/0.2048, allocations: 197 kB / 413.9 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001873/0.205, allocations: 109.7 kB / 414 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.205, allocations: 8.141 kB / 414 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.514e-05/0.2051, allocations: 38.69 kB / 414 MB, free: 21.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.513e-06/0.2051, allocations: 0 / 414 MB, free: 21.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001241/0.2063, allocations: 0.8749 MB / 414.9 MB, free: 20.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.243e-05/0.2064, allocations: 85.05 kB / 415 MB, free: 20.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.2065, allocations: 179.2 kB / 415.1 MB, free: 20.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.2065, allocations: 25.7 kB / 415.2 MB, free: 20.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.2066, allocations: 140.4 kB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.7e-05/0.2066, allocations: 98.55 kB / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.132e-05/0.2066, allocations: 8 kB / 415.4 MB, free: 19.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.928e-05/0.2067, allocations: 330.8 kB / 415.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.2068, allocations: 67.97 kB / 415.8 MB, free: 19.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.207, allocations: 108.2 kB / 415.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.2072, allocations: 194.6 kB / 416.1 MB, free: 19.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.2072, allocations: 3.938 kB / 416.1 MB, free: 19.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003372/0.2076, allocations: 252.3 kB / 416.3 MB, free: 18.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2076, allocations: 10.66 kB / 416.4 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2076, allocations: 0 / 416.4 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.2076, allocations: 8 kB / 416.4 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.2079, allocations: 63.84 kB / 416.4 MB, free: 18.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.2079, allocations: 8.078 kB / 416.4 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.825e-05/0.208, allocations: 19.91 kB / 416.5 MB, free: 18.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.208, allocations: 8.391 kB / 416.5 MB, free: 18.86 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.279e-05/0.2081, allocations: 141.7 kB / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.103e-05/0.2082, allocations: 15.81 kB / 416.6 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.125e-05/0.2082, allocations: 29.86 kB / 416.6 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2082, allocations: 4 kB / 416.6 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2082, allocations: 0 / 416.6 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.2083, allocations: 4 kB / 416.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006119/0.2089, allocations: 0.5923 MB / 417.2 MB, free: 18.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2089, allocations: 4.094 kB / 417.2 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002371/0.2091, allocations: 63.91 kB / 417.3 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.2091, allocations: 0 / 417.3 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.2092, allocations: 8 kB / 417.3 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.2092, allocations: 7.984 kB / 417.3 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2092, allocations: 3.938 kB / 417.3 MB, free: 17.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004814/0.2097, allocations: 0.4969 MB / 417.8 MB, free: 17.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.19e-05/0.2097, allocations: 96.92 kB / 417.9 MB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.2097, allocations: 4 kB / 417.9 MB, free: 17.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.2099, allocations: 16.03 kB / 417.9 MB, free: 17.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.988e-05/0.21, allocations: 15.92 kB / 418 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.21, allocations: 12 kB / 418 MB, free: 17.24 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.523e-05/0.21, allocations: 132.2 kB / 418.1 MB, free: 17.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.21, allocations: 0 / 418.1 MB, free: 17.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002938/0.2103, allocations: 52 kB / 418.2 MB, free: 17.06 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.989e-05/0.2104, allocations: 103.2 kB / 418.3 MB, free: 16.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003099/0.2108, allocations: 183.8 kB / 418.4 MB, free: 16.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2108, allocations: 0 / 418.4 MB, free: 16.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.2109, allocations: 108 kB / 418.5 MB, free: 16.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004651/0.2114, allocations: 40.8 kB / 418.6 MB, free: 16.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008783/0.2123, allocations: 0.8629 MB / 419.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001388/0.2124, allocations: 0.7521 MB / 420.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.433e-05/0.2125, allocations: 19.44 kB / 420.2 MB, free: 14.92 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2125, allocations: 0 / 420.2 MB, free: 14.92 MB / 298.7 MB Notification: Performance of Templates: time 0.003178/0.2157, allocations: 2.563 MB / 422.8 MB, free: 12.37 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches