Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002274/0.002273, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.105/2.105, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.952e-05/2.962e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09519/0.09525, allocations: 47.56 MB / 369.1 MB, free: 2.215 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4051/0.5004, allocations: 77.09 MB / 446.2 MB, free: 104 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.5007, allocations: 67.84 kB / 446.2 MB, free: 68 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01688/0.5176, allocations: 3.803 MB / 450 MB, free: 12.85 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5176, allocations: 0 / 450 MB, free: 12.85 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.969e-05/0.5177, allocations: 4 kB / 450 MB, free: 12.85 MB / 330.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.0009317/0.5186, allocations: 482.8 kB / 450.5 MB, free: 12.34 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.5187, allocations: 12.03 kB / 450.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.996e-05/0.5188, allocations: 23.72 kB / 450.5 MB, free: 12.31 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003367/0.5191, allocations: 225.8 kB / 450.8 MB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.5192, allocations: 19.31 kB / 450.8 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.243e-05/0.5192, allocations: 26.27 kB / 450.8 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005194/0.5198, allocations: 197.2 kB / 451 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.5198, allocations: 0 / 451 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.49e-05/0.5199, allocations: 10.19 kB / 451 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.5199, allocations: 8 kB / 451 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003833/0.5203, allocations: 129.8 kB / 451.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.5221, allocations: 0.791 MB / 451.9 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005306/0.5227, allocations: 185.1 kB / 452.1 MB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002873/0.523, allocations: 96.33 kB / 452.2 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.5231, allocations: 4 kB / 452.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.456e-05/0.5231, allocations: 38.55 kB / 452.3 MB, free: 10.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.366e-06/0.5231, allocations: 3.938 kB / 452.3 MB, free: 10.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.001876/0.525, allocations: 0.7701 MB / 453 MB, free: 10.01 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.5251, allocations: 81.11 kB / 453.1 MB, free: 9.914 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002215/0.5253, allocations: 168.8 kB / 453.3 MB, free: 9.762 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.5254, allocations: 29.64 kB / 453.3 MB, free: 9.73 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.5255, allocations: 194.2 kB / 453.5 MB, free: 9.555 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.521e-05/0.5256, allocations: 97.41 kB / 453.6 MB, free: 9.473 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.159e-05/0.5256, allocations: 7.812 kB / 453.6 MB, free: 9.469 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.5258, allocations: 318.6 kB / 453.9 MB, free: 9.152 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.526, allocations: 54.98 kB / 454 MB, free: 9.117 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.5262, allocations: 110.1 kB / 454.1 MB, free: 9.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002054/0.5264, allocations: 63.47 kB / 454.1 MB, free: 8.977 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.5264, allocations: 0 / 454.1 MB, free: 8.977 MB / 330.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005201/0.527, allocations: 215.4 kB / 454.3 MB, free: 8.809 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.527, allocations: 4 kB / 454.3 MB, free: 8.805 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.527, allocations: 4 kB / 454.3 MB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.527, allocations: 8.047 kB / 454.4 MB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/0.5276, allocations: 71.59 kB / 454.4 MB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.5276, allocations: 0 / 454.4 MB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.5278, allocations: 19.64 kB / 454.4 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.329e-05/0.5279, allocations: 8 kB / 454.5 MB, free: 8.703 MB / 330.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 () * 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.0001152/0.528, allocations: 116.7 kB / 454.6 MB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-05/0.5281, allocations: 15.81 kB / 454.6 MB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.215e-05/0.5282, allocations: 32.83 kB / 454.6 MB, free: 8.559 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.5282, allocations: 4 kB / 454.6 MB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.5282, allocations: 3.953 kB / 454.6 MB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.5282, allocations: 0 / 454.6 MB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.5294, allocations: 0.575 MB / 455.2 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.5295, allocations: 7.984 kB / 455.2 MB, free: 7.996 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005407/0.53, allocations: 63.72 kB / 455.3 MB, free: 7.938 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.097e-05/0.53, allocations: 4 kB / 455.3 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.5301, allocations: 3.875 kB / 455.3 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.5301, allocations: 4 kB / 455.3 MB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5301, allocations: 0 / 455.3 MB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008221/0.5309, allocations: 0.498 MB / 455.8 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.463e-05/0.531, allocations: 100.8 kB / 455.9 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.7e-05/0.5311, allocations: 11.94 kB / 455.9 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.5314, allocations: 11.97 kB / 455.9 MB, free: 7.328 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.523e-05/0.5315, allocations: 15.94 kB / 455.9 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.5315, allocations: 11.81 kB / 455.9 MB, free: 7.305 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001615/0.5317, allocations: 135.2 kB / 456.1 MB, free: 7.188 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5317, allocations: 0 / 456.1 MB, free: 7.188 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005027/0.5322, allocations: 51.56 kB / 456.1 MB, free: 7.145 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (mass1.s,mass1.v,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete 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 0.0001786/0.5324, allocations: 107.1 kB / 456.2 MB, free: 7.035 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004746/0.5329, allocations: 158.5 kB / 456.4 MB, free: 6.918 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5329, allocations: 0 / 456.4 MB, free: 6.918 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002153/0.5331, allocations: 91.14 kB / 456.5 MB, free: 6.852 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000487/0.5336, allocations: 31.91 kB / 456.5 MB, free: 6.828 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.5352, allocations: 0.5766 MB / 457.1 MB, free: 6.246 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/0.5356, allocations: 0.7482 MB / 457.8 MB, free: 5.469 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.5358, allocations: 23.42 kB / 457.8 MB, free: 5.445 MB / 330.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5358, allocations: 0 / 457.8 MB, free: 5.445 MB / 330.7 MB Notification: Performance of Templates: time 0.006981/0.5428, allocations: 2.514 MB / 460.4 MB, free: 2.965 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches