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.0009152/0.0009152, allocations: 194.1 kB / 17.05 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.209/1.209, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007656/0.0007658, allocations: 95.5 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001919/0.0001919, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2181, allocations: 51.31 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.002395/0.2205, allocations: 2.036 MB / 409.5 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000873/0.2214, allocations: 0.59 MB / 410.1 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.2215, allocations: 4 kB / 410.1 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.2217, allocations: 27.77 kB / 410.2 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.2218, allocations: 58.77 kB / 410.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002336/0.2221, allocations: 47.94 kB / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002469/0.2223, allocations: 230.9 kB / 410.5 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.2225, allocations: 68.28 kB / 410.6 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.2227, allocations: 87.66 kB / 410.6 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.2229, allocations: 95.59 kB / 410.7 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.055e-05/0.2229, allocations: 13.5 kB / 410.7 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.723e-05/0.223, allocations: 12 kB / 410.8 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.989e-05/0.223, allocations: 35.84 kB / 410.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.752e-05/0.2231, allocations: 65.58 kB / 410.9 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001962/0.2233, allocations: 185 kB / 411 MB, free: 24.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2233, allocations: 3.531 kB / 411 MB, free: 24.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2233, allocations: 4 kB / 411 MB, free: 24.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.2233, allocations: 0 / 411 MB, free: 24.25 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.0007343/0.2241, allocations: 0.4949 MB / 411.5 MB, free: 23.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2241, allocations: 12.03 kB / 411.5 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003063/0.2244, allocations: 51.62 kB / 411.6 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.2247, allocations: 227.4 kB / 411.8 MB, free: 23.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.2247, allocations: 12.44 kB / 411.8 MB, free: 23.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.38e-05/0.2248, allocations: 20 kB / 411.9 MB, free: 23.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004689/0.2252, allocations: 229.3 kB / 412.1 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.2253, allocations: 7.844 kB / 412.1 MB, free: 23.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.674e-05/0.2253, allocations: 8 kB / 412.1 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2253, allocations: 8 kB / 412.1 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.2257, allocations: 152.5 kB / 412.2 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001256/0.227, allocations: 0.788 MB / 413 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004855/0.2275, allocations: 201 kB / 413.2 MB, free: 21.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/0.2278, allocations: 105.7 kB / 413.3 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.2279, allocations: 4 kB / 413.3 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.2279, allocations: 46.48 kB / 413.4 MB, free: 21.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.124e-06/0.2279, allocations: 0 / 413.4 MB, free: 21.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001753/0.2297, allocations: 0.882 MB / 414.3 MB, free: 20.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.2297, allocations: 81.11 kB / 414.3 MB, free: 20.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.2299, allocations: 183.2 kB / 414.5 MB, free: 20.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.2299, allocations: 33.7 kB / 414.6 MB, free: 20.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.508e-05/0.23, allocations: 136.4 kB / 414.7 MB, free: 20.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.63e-05/0.2301, allocations: 94.56 kB / 414.8 MB, free: 20.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.45e-05/0.2301, allocations: 4 kB / 414.8 MB, free: 20.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.323e-05/0.2302, allocations: 334.8 kB / 415.1 MB, free: 19.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002165/0.2304, allocations: 63.95 kB / 415.2 MB, free: 19.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002311/0.2306, allocations: 116.2 kB / 415.3 MB, free: 19.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002308/0.2309, allocations: 82.16 kB / 415.4 MB, free: 19.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2309, allocations: 4 kB / 415.4 MB, free: 19.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005757/0.2315, allocations: 249.2 kB / 415.6 MB, free: 19.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.2315, allocations: 4 kB / 415.6 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.2315, allocations: 4 kB / 415.6 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.2316, allocations: 0 / 415.6 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.2319, allocations: 71.98 kB / 415.7 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.232, allocations: 0 / 415.7 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.2321, allocations: 19.86 kB / 415.7 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.2322, allocations: 12 kB / 415.7 MB, free: 19.2 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 0.0001124/0.2323, allocations: 133.8 kB / 415.9 MB, free: 19.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.435e-05/0.2324, allocations: 23.75 kB / 415.9 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.024e-05/0.2325, allocations: 29.86 kB / 415.9 MB, free: 19.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.2325, allocations: 8 kB / 415.9 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.445e-06/0.2325, allocations: 0 / 415.9 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.2325, allocations: 3.938 kB / 415.9 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009714/0.2335, allocations: 0.5891 MB / 416.5 MB, free: 18.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.2335, allocations: 4 kB / 416.5 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004092/0.2339, allocations: 59.97 kB / 416.6 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.303e-06/0.234, allocations: 11.89 kB / 416.6 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.234, allocations: 8 kB / 416.6 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.234, allocations: 3.984 kB / 416.6 MB, free: 18.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.234, allocations: 4 kB / 416.6 MB, free: 18.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007609/0.2348, allocations: 0.4936 MB / 417.1 MB, free: 17.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.051e-05/0.2348, allocations: 92.83 kB / 417.2 MB, free: 17.63 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.029e-05/0.2349, allocations: 11.95 kB / 417.2 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002721/0.2352, allocations: 16.03 kB / 417.2 MB, free: 17.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.389e-05/0.2352, allocations: 11.98 kB / 417.2 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.2353, allocations: 8 kB / 417.2 MB, free: 17.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001028/0.2354, allocations: 136.3 kB / 417.4 MB, free: 17.45 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2354, allocations: 4 kB / 417.4 MB, free: 17.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005319/0.2359, allocations: 48 kB / 417.4 MB, free: 17.4 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 9.759e-05/0.236, allocations: 103.7 kB / 417.5 MB, free: 17.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005271/0.2366, allocations: 195.2 kB / 417.7 MB, free: 17.1 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2366, allocations: 4 kB / 417.7 MB, free: 17.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002549/0.2369, allocations: 95.89 kB / 417.8 MB, free: 17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007317/0.2376, allocations: 47.75 kB / 417.9 MB, free: 16.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.239, allocations: 0.8552 MB / 418.7 MB, free: 16.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001692/0.2392, allocations: 0.7445 MB / 419.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.235e-05/0.2393, allocations: 27.44 kB / 419.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2393, allocations: 0 / 419.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of Templates: time 0.004814/0.2442, allocations: 2.556 MB / 422 MB, free: 12.71 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