Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 112.2 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 219 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.387/1.387, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite master/package.mo): time 0.7249/0.7249, allocations: 120.6 MB / 431.5 MB, free: 152 kB / 350.1 MB " [Timeout remaining time 179] Using package ScalableTestSuite with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Mechanical_HarmonicOscillator_Verification_HarmonicOscillatorCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Mechanical_HarmonicOscillator_Verification_HarmonicOscillatorCheck",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: ScalableTestSuite requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 63.89 kB / 0.6022 GB, free: 11.52 MB / 0.4982 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5336/0.5357, allocations: 85.83 MB / 0.686 GB, free: 11.13 MB / 0.5139 GB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck): time 0.00182/0.5375, allocations: 1.21 MB / 0.6872 GB, free: 10.17 MB / 0.5139 GB Notification: Performance of NFInst.instExpressions: time 0.0001745/0.5377, allocations: 33.11 kB / 0.6872 GB, free: 10.15 MB / 0.5139 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.1e-05/0.5377, allocations: 0.9375 kB / 0.6872 GB, free: 10.15 MB / 0.5139 GB Notification: Performance of NFTyping.typeComponents: time 7.5e-05/0.5378, allocations: 0 / 0.6872 GB, free: 10.15 MB / 0.5139 GB Notification: Performance of NFTyping.typeBindings: time 5.566e-05/0.5379, allocations: 13.77 kB / 0.6873 GB, free: 10.14 MB / 0.5139 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001324/0.538, allocations: 23.58 kB / 0.6873 GB, free: 10.12 MB / 0.5139 GB Notification: Performance of NFFlatten.flatten: time 0.000124/0.5381, allocations: 62.95 kB / 0.6873 GB, free: 10.09 MB / 0.5139 GB Notification: Performance of NFFlatten.resolveConnections: time 4.311e-05/0.5382, allocations: 9.781 kB / 0.6873 GB, free: 10.08 MB / 0.5139 GB Notification: Performance of NFEvalConstants.evaluate: time 3.495e-05/0.5382, allocations: 21.78 kB / 0.6874 GB, free: 10.07 MB / 0.5139 GB Notification: Performance of NFSimplifyModel.simplify: time 6.491e-05/0.5383, allocations: 27.97 kB / 0.6874 GB, free: 10.06 MB / 0.5139 GB Notification: Performance of NFPackage.collectConstants: time 1.778e-05/0.5383, allocations: 2.781 kB / 0.6874 GB, free: 10.06 MB / 0.5139 GB Notification: Performance of NFFlatten.collectFunctions: time 1.297e-05/0.5383, allocations: 2.75 kB / 0.6874 GB, free: 10.06 MB / 0.5139 GB Notification: Performance of NFScalarize.scalarize: time 4.19e-05/0.5383, allocations: 26.36 kB / 0.6874 GB, free: 10.04 MB / 0.5139 GB Notification: Performance of NFVerifyModel.verify: time 3.793e-05/0.5384, allocations: 16.22 kB / 0.6874 GB, free: 10.03 MB / 0.5139 GB Notification: Performance of NFConvertDAE.convert: time 7.667e-05/0.5385, allocations: 46.17 kB / 0.6875 GB, free: 10 MB / 0.5139 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.5385, allocations: 0 / 0.6875 GB, free: 10 MB / 0.5139 GB Notification: Performance of FrontEnd: time 1.954e-06/0.5385, allocations: 0 / 0.6875 GB, free: 10 MB / 0.5139 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.5385, allocations: 0.9375 kB / 0.6875 GB, free: 10 MB / 0.5139 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004222/0.5389, allocations: 373.4 kB / 0.6878 GB, free: 9.621 MB / 0.5139 GB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.5389, allocations: 10.16 kB / 0.6879 GB, free: 9.621 MB / 0.5139 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.2e-05/0.5389, allocations: 1.125 kB / 0.6879 GB, free: 9.621 MB / 0.5139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.064e-05/0.539, allocations: 36.59 kB / 0.6879 GB, free: 9.578 MB / 0.5139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/0.539, allocations: 3.688 kB / 0.6879 GB, free: 9.578 MB / 0.5139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.5391, allocations: 183.6 kB / 0.6881 GB, free: 9.367 MB / 0.5139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.5391, allocations: 3.156 kB / 0.6881 GB, free: 9.367 MB / 0.5139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.667e-05/0.5391, allocations: 17.86 kB / 0.6881 GB, free: 9.355 MB / 0.5139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.5393, allocations: 68.44 kB / 0.6882 GB, free: 9.301 MB / 0.5139 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.5393, allocations: 1.844 kB / 0.6882 GB, free: 9.301 MB / 0.5139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.5393, allocations: 4 kB / 0.6882 GB, free: 9.297 MB / 0.5139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.5393, allocations: 0.9062 kB / 0.6882 GB, free: 9.297 MB / 0.5139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.626e-05/0.5394, allocations: 29.5 kB / 0.6882 GB, free: 9.285 MB / 0.5139 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001476/0.5395, allocations: 182.3 kB / 0.6884 GB, free: 9.074 MB / 0.5139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.5396, allocations: 69.83 kB / 0.6884 GB, free: 9.027 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.674e-05/0.5397, allocations: 34.69 kB / 0.6885 GB, free: 9.004 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.5397, allocations: 5.781 kB / 0.6885 GB, free: 9 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.584e-05/0.5397, allocations: 43.41 kB / 0.6885 GB, free: 8.949 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.5397, allocations: 0 / 0.6885 GB, free: 8.949 MB / 0.5139 GB Notification: Performance of matching and sorting (n=8): time 0.0002379/0.5399, allocations: 119.6 kB / 0.6886 GB, free: 8.875 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.54, allocations: 52.34 kB / 0.6887 GB, free: 8.812 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.616e-05/0.54, allocations: 102.5 kB / 0.6888 GB, free: 8.707 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.54, allocations: 30.61 kB / 0.6888 GB, free: 8.672 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 2.467e-05/0.5401, allocations: 85.08 kB / 0.6889 GB, free: 8.586 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.5401, allocations: 36.31 kB / 0.6889 GB, free: 8.555 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.5401, allocations: 33.5 kB / 0.6889 GB, free: 8.527 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 5.536e-05/0.5402, allocations: 317 kB / 0.6892 GB, free: 8.211 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.692e-05/0.5403, allocations: 41.31 kB / 0.6893 GB, free: 8.191 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.192e-05/0.5403, allocations: 72.8 kB / 0.6894 GB, free: 8.133 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.5405, allocations: 116.1 kB / 0.6895 GB, free: 8.051 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.5405, allocations: 0.9062 kB / 0.6895 GB, free: 8.051 MB / 0.5139 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001948/0.5407, allocations: 152.8 kB / 0.6896 GB, free: 7.961 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.5407, allocations: 10.38 kB / 0.6896 GB, free: 7.957 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.5407, allocations: 1.094 kB / 0.6896 GB, free: 7.957 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.5407, allocations: 1.25 kB / 0.6896 GB, free: 7.957 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.5409, allocations: 36.31 kB / 0.6897 GB, free: 7.949 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.5409, allocations: 6.734 kB / 0.6897 GB, free: 7.945 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.742e-05/0.5409, allocations: 15.05 kB / 0.6897 GB, free: 7.934 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.5409, allocations: 3.844 kB / 0.6897 GB, free: 7.934 MB / 0.5139 GB 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 (16): * Single equations (assignments): 16 * 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 4.837e-05/0.541, allocations: 116.2 kB / 0.6898 GB, free: 7.816 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.541, allocations: 6.594 kB / 0.6898 GB, free: 7.812 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.23e-05/0.541, allocations: 15.95 kB / 0.6898 GB, free: 7.789 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.541, allocations: 1.531 kB / 0.6898 GB, free: 7.789 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.541, allocations: 0 / 0.6898 GB, free: 7.789 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.541, allocations: 1.094 kB / 0.6898 GB, free: 7.789 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.071e-05/0.5411, allocations: 178.1 kB / 0.69 GB, free: 7.582 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.5411, allocations: 3.938 kB / 0.69 GB, free: 7.578 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001821/0.5413, allocations: 34.77 kB / 0.69 GB, free: 7.566 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.5413, allocations: 1.156 kB / 0.69 GB, free: 7.566 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.5413, allocations: 10.14 kB / 0.69 GB, free: 7.559 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.5413, allocations: 1.188 kB / 0.69 GB, free: 7.559 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.5413, allocations: 4 kB / 0.69 GB, free: 7.555 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001845/0.5415, allocations: 153.9 kB / 0.6902 GB, free: 7.441 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 1.809e-05/0.5415, allocations: 86.23 kB / 0.6903 GB, free: 7.34 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.875e-05/0.5415, allocations: 7.141 kB / 0.6903 GB, free: 7.336 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.933e-05/0.5416, allocations: 1.469 kB / 0.6903 GB, free: 7.336 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.822e-05/0.5416, allocations: 6.484 kB / 0.6903 GB, free: 7.332 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.5416, allocations: 6.766 kB / 0.6903 GB, free: 7.328 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 1.848e-05/0.5416, allocations: 86 kB / 0.6904 GB, free: 7.246 MB / 0.5139 GB Notification: Performance of sort global known variables: time 5e-08/0.5416, allocations: 0 / 0.6904 GB, free: 7.246 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.0001936/0.5418, allocations: 12.94 kB / 0.6904 GB, free: 7.246 MB / 0.5139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (x[1],x[2],x[3],x[4],v[1],v[2],v[3],v[4]) * 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 (8): * Single equations (assignments): 8 * 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.0003053/0.5421, allocations: 0.6845 MB / 0.6911 GB, free: 6.605 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.0001611/0.5423, allocations: 85.42 kB / 0.6911 GB, free: 6.57 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.5423, allocations: 0 / 0.6911 GB, free: 6.57 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 4.62e-05/0.5423, allocations: 40.25 kB / 0.6912 GB, free: 6.551 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001614/0.5425, allocations: 6.312 kB / 0.6912 GB, free: 6.547 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.544, allocations: 1.961 MB / 0.6931 GB, free: 4.828 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.991e-05/0.5441, allocations: 0.6958 MB / 0.6938 GB, free: 4.121 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 5.76e-05/0.5441, allocations: 25.39 kB / 0.6938 GB, free: 4.109 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.899e-05/0.5442, allocations: 23.23 kB / 0.6938 GB, free: 4.09 MB / 0.5139 GB Notification: Performance of SimCode: time 3e-07/0.5442, allocations: 0 / 0.6938 GB, free: 4.09 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01832/0.5625, allocations: 2.043 MB / 0.6958 GB, free: 3.094 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.063/8.626, allocations: 26.69 kB / 0.6958 GB, free: 3.07 MB / 0.5139 GB " [Timeout remaining time 291] (rm -f ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck.pipe ; mkfifo ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck.pipe ; head -c 1048576 < ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck.pipe >> ../files/ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck_res.mat --tempDir=temp_ScalableTestSuite_ScalableTestSuite_Mechanical_HarmonicOscillator_Verification_HarmonicOscillatorCheck_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=300 --tolerance=1e-06 ScalableTestSuite_ScalableTestSuite_Mechanical_HarmonicOscillator_Verification_HarmonicOscillatorCheck.fmu > ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck.pipe 2>&1) [Timeout 315.0] diffSimulationResults("ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ScalableTestSuite/ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ScalableTestSuite_ScalableTestSuite.Mechanical.HarmonicOscillator.Verification.HarmonicOscillatorCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:der(v[1]),der(v[2]),der(v[3]),der(v[4]),der(x[1]),der(x[2]),der(x[3]),der(x[4]),time,time,v[1],v[2],v[3],v[4],x[1],x[2],x[3],x[4] Variables in the result:N,der(v[1]),der(v[2]),der(v[3]),der(v[4]),der(x[1]),der(x[2]),der(x[3]),der(x[4]),k,m,time,v[1],v[2],v[3],v[4],x[1],x[2],x[3],x[4] [Calling sys.exit(0), Time elapsed: 12.261029353016056]