Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008278/0.0008278, allocations: 80.34 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008757/0.0008757, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8787/0.8787, allocations: 177 MB / 204.1 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.536e-05/1.752e-05, allocations: 3.125 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.002289/0.002307, allocations: 2.3 MB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007275/0.003034, allocations: 0.6425 MB / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.315e-05/0.003127, allocations: 7.938 kB / 327.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.003237, allocations: 31.66 kB / 327.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.072e-05/0.003328, allocations: 79.28 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002416/0.003569, allocations: 83.75 kB / 327.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002322/0.003801, allocations: 266.7 kB / 327.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.003944, allocations: 65.7 kB / 328 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.004126, allocations: 151.7 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.004229, allocations: 79.77 kB / 328.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/0.004255, allocations: 23.94 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.135e-05/0.004307, allocations: 24 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.894e-05/0.004336, allocations: 51.81 kB / 328.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.102e-05/0.004397, allocations: 83.77 kB / 328.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002176/0.004614, allocations: 259.1 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.004618, allocations: 4 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.004619, allocations: 0 / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.004623, allocations: 0 / 328.6 MB, free: 11.73 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.0005233/0.005146, allocations: 461.6 kB / 329.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.005183, allocations: 19.98 kB / 329.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.392e-05/0.005237, allocations: 50.73 kB / 329.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.005363, allocations: 48.72 kB / 329.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.005555, allocations: 181.3 kB / 329.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.005568, allocations: 20.81 kB / 329.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.0056, allocations: 28.27 kB / 329.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002863/0.005886, allocations: 218.7 kB / 329.6 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.005899, allocations: 7.938 kB / 329.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.005914, allocations: 4 kB / 329.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.005921, allocations: 8 kB / 329.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.006111, allocations: 143.8 kB / 329.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006995/0.006811, allocations: 0.697 MB / 330.5 MB, free: 9.734 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.007072, allocations: 193 kB / 330.7 MB, free: 9.527 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001375/0.00721, allocations: 96.05 kB / 330.8 MB, free: 9.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.007231, allocations: 8 kB / 330.8 MB, free: 9.422 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.007247, allocations: 30.56 kB / 330.8 MB, free: 9.383 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.413e-06/0.007248, allocations: 0 / 330.8 MB, free: 9.383 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.0009323/0.00818, allocations: 0.7208 MB / 331.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.008217, allocations: 89.09 kB / 331.6 MB, free: 8.504 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.008322, allocations: 179 kB / 331.8 MB, free: 8.316 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.008337, allocations: 33.7 kB / 331.8 MB, free: 8.277 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.215e-05/0.008399, allocations: 144.5 kB / 332 MB, free: 8.133 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.348e-05/0.008442, allocations: 95.17 kB / 332.1 MB, free: 8.039 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-05/0.008493, allocations: 45.7 kB / 332.1 MB, free: 7.988 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.008689, allocations: 330.8 kB / 332.4 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.509e-05/0.008775, allocations: 75.89 kB / 332.5 MB, free: 7.582 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.918e-05/0.008874, allocations: 104.2 kB / 332.6 MB, free: 7.465 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.009069, allocations: 188.1 kB / 332.8 MB, free: 7.266 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.009071, allocations: 4 kB / 332.8 MB, free: 7.262 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002498/0.009321, allocations: 260.5 kB / 333 MB, free: 7.004 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.009332, allocations: 6.969 kB / 333.1 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.009336, allocations: 0 / 333.1 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.00935, allocations: 7.984 kB / 333.1 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.009485, allocations: 59.91 kB / 333.1 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.00949, allocations: 0 / 333.1 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.354e-05/0.009543, allocations: 23.92 kB / 333.1 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.009554, allocations: 8 kB / 333.2 MB, free: 6.902 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.768e-05/0.009632, allocations: 133.8 kB / 333.3 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.109e-05/0.009663, allocations: 31.86 kB / 333.3 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.739e-05/0.0097, allocations: 29.8 kB / 333.3 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.009703, allocations: 11.88 kB / 333.4 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.009707, allocations: 0 / 333.4 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.00971, allocations: 0 / 333.4 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004833/0.01019, allocations: 0.525 MB / 333.9 MB, free: 6.109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.0102, allocations: 4 kB / 333.9 MB, free: 6.105 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.01034, allocations: 60 kB / 333.9 MB, free: 6.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.01034, allocations: 4 kB / 333.9 MB, free: 6.043 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.01035, allocations: 7.984 kB / 334 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.01036, allocations: 4 kB / 334 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.01036, allocations: 0 / 334 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003736/0.01073, allocations: 493.2 kB / 334.4 MB, free: 5.523 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.824e-05/0.01075, allocations: 19.86 kB / 334.5 MB, free: 5.504 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.01077, allocations: 8 kB / 334.5 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.174e-05/0.01085, allocations: 16.03 kB / 334.5 MB, free: 5.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.053e-05/0.01089, allocations: 19.91 kB / 334.5 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.0109, allocations: 8 kB / 334.5 MB, free: 5.453 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.635e-05/0.01096, allocations: 140.2 kB / 334.6 MB, free: 5.316 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01096, allocations: 0 / 334.6 MB, free: 5.316 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002042/0.01117, allocations: 52 kB / 334.7 MB, free: 5.266 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 (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.0008265/0.012, allocations: 1.03 MB / 335.7 MB, free: 4.199 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002384/0.01223, allocations: 175.8 kB / 335.9 MB, free: 4.027 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01224, allocations: 0 / 335.9 MB, free: 4.027 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.975e-05/0.01233, allocations: 92.73 kB / 336 MB, free: 3.938 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.01266, allocations: 48.5 kB / 336 MB, free: 3.891 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.01471, allocations: 2.568 MB / 338.6 MB, free: 1.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.64e-05/0.0148, allocations: 138.2 kB / 338.7 MB, free: 1.031 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.084e-05/0.01486, allocations: 21.94 kB / 338.8 MB, free: 1.008 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.645e-05/0.01494, allocations: 76.47 kB / 338.8 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of SimCode: time 7.42e-07/0.01494, allocations: 4 kB / 338.8 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01936/0.03431, allocations: 5.229 MB / 344.1 MB, free: 11.82 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.824/6.859, allocations: 14.66 kB / 344.1 MB, free: 11.81 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.462442447431386]