Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo): time 0.00691/0.00691, allocations: 1.442 MB / 20.54 MB, free: 4.012 MB / 18.57 MB " [Timeout remaining time 180] 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.0006828/0.0006828, allocations: 91.45 kB / 24.16 MB, free: 396 kB / 18.57 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.0007979/0.0007979, allocations: 163.6 kB / 27.86 MB, free: 5.496 MB / 18.57 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 0.8353/0.8353, allocations: 177.2 MB / 208.6 MB, free: 2.969 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo): time 0.6891/0.6891, allocations: 102.5 MB / 367.9 MB, free: 1.492 MB / 330.8 MB " [Timeout remaining time 179] Using package ClaRa with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/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) Using package SMArtInt with version 0.5.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo) Running command: "" <> buildModelFMU(ClaRa.Components.Utilities.Blocks.Check.TestMinMax,fileNamePrefix="ClaRa_ClaRa_Components_Utilities_Blocks_Check_TestMinMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ClaRa.Components.Utilities.Blocks.Check.TestMinMax,fileNamePrefix="ClaRa_ClaRa_Components_Utilities_Blocks_Check_TestMinMax",fmuType="me",version="2.0",platforms={"static"}) [Timeout 800] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 0.5362 GB, free: 40.1 MB / 490.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.591e-05/1.75e-05, allocations: 4.109 kB / 0.5362 GB, free: 40.1 MB / 490.8 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.TestMinMax): time 0.002075/0.002092, allocations: 2.296 MB / 0.5384 GB, free: 38.52 MB / 490.8 MB Notification: Performance of NFInst.instExpressions: time 0.0006432/0.002736, allocations: 0.4972 MB / 0.5389 GB, free: 38.19 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.945e-05/0.002795, allocations: 3.938 kB / 0.5389 GB, free: 38.19 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 4.584e-05/0.002841, allocations: 10.06 kB / 0.5389 GB, free: 38.18 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 6.662e-05/0.002908, allocations: 21.08 kB / 0.5389 GB, free: 38.16 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002528/0.00316, allocations: 51.31 kB / 0.539 GB, free: 38.14 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.003283, allocations: 81.69 kB / 0.5391 GB, free: 38.1 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 9.461e-05/0.003377, allocations: 13.67 kB / 0.5391 GB, free: 38.09 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.003518, allocations: 60.88 kB / 0.5391 GB, free: 38.06 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 5.253e-05/0.003571, allocations: 28.42 kB / 0.5392 GB, free: 38.05 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 2.124e-05/0.003592, allocations: 6.594 kB / 0.5392 GB, free: 38.05 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.808e-05/0.00364, allocations: 13.5 kB / 0.5392 GB, free: 38.05 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 4.483e-05/0.003685, allocations: 21.42 kB / 0.5392 GB, free: 38.04 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 2.982e-05/0.003714, allocations: 24.25 kB / 0.5392 GB, free: 38.03 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.003853, allocations: 78.84 kB / 0.5393 GB, free: 38 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.003855, allocations: 0 / 0.5393 GB, free: 38 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.182e-06/0.003856, allocations: 0 / 0.5393 GB, free: 38 MB / 490.8 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.00386, allocations: 0 / 0.5393 GB, free: 38 MB / 490.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004229/0.004283, allocations: 338 kB / 0.5396 GB, free: 37.7 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.004325, allocations: 10.22 kB / 0.5396 GB, free: 37.7 MB / 490.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.532e-05/0.00435, allocations: 38.25 kB / 0.5397 GB, free: 37.66 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.051e-05/0.004441, allocations: 19.22 kB / 0.5397 GB, free: 37.66 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.004579, allocations: 144.6 kB / 0.5398 GB, free: 37.5 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.004601, allocations: 6.094 kB / 0.5398 GB, free: 37.5 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.004619, allocations: 8.844 kB / 0.5398 GB, free: 37.5 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.004793, allocations: 91.5 kB / 0.5399 GB, free: 37.45 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.0048, allocations: 1.406 kB / 0.5399 GB, free: 37.45 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.00481, allocations: 6.031 kB / 0.5399 GB, free: 37.45 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.004815, allocations: 0 / 0.5399 GB, free: 37.45 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001467/0.004962, allocations: 81.48 kB / 0.54 GB, free: 37.43 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002938/0.005255, allocations: 273.9 kB / 0.5403 GB, free: 37.18 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003557/0.005611, allocations: 151.3 kB / 0.5404 GB, free: 37.13 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.005712, allocations: 52.22 kB / 0.5405 GB, free: 37.12 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.005729, allocations: 0 / 0.5405 GB, free: 37.12 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.312e-05/0.005742, allocations: 34.75 kB / 0.5405 GB, free: 37.08 MB / 490.8 MB Notification: Performance of pre-optimization done (n=5): time 1.323e-06/0.005744, allocations: 1.562 kB / 0.5405 GB, free: 37.08 MB / 490.8 MB Notification: Performance of matching and sorting (n=5): time 0.0003751/0.006119, allocations: 173 kB / 0.5407 GB, free: 37.02 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.355e-05/0.006142, allocations: 52.75 kB / 0.5407 GB, free: 36.96 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.283e-05/0.006215, allocations: 137.1 kB / 0.5409 GB, free: 36.85 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 9.067e-06/0.006224, allocations: 30.67 kB / 0.5409 GB, free: 36.81 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.542e-05/0.006259, allocations: 92.92 kB / 0.541 GB, free: 36.72 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.126e-05/0.006281, allocations: 25.09 kB / 0.541 GB, free: 36.7 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.1e-05/0.006312, allocations: 23.86 kB / 0.541 GB, free: 36.68 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 3.824e-05/0.00635, allocations: 324.1 kB / 0.5413 GB, free: 36.36 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.843e-05/0.006448, allocations: 51.44 kB / 0.5414 GB, free: 36.35 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.914e-05/0.006538, allocations: 56.61 kB / 0.5414 GB, free: 36.34 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.006721, allocations: 95.88 kB / 0.5415 GB, free: 36.31 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.006723, allocations: 1.281 kB / 0.5415 GB, free: 36.31 MB / 490.8 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000217/0.00694, allocations: 137.9 kB / 0.5417 GB, free: 36.26 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.006955, allocations: 8.469 kB / 0.5417 GB, free: 36.26 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.00696, allocations: 0 / 0.5417 GB, free: 36.26 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.006973, allocations: 0.5 kB / 0.5417 GB, free: 36.26 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.765e-05/0.00705, allocations: 30.47 kB / 0.5417 GB, free: 36.26 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.007056, allocations: 0 / 0.5417 GB, free: 36.26 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.8e-05/0.007104, allocations: 19.31 kB / 0.5417 GB, free: 36.25 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.007113, allocations: 1.75 kB / 0.5417 GB, free: 36.25 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 7 * 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 5.047e-05/0.007164, allocations: 121.9 kB / 0.5418 GB, free: 36.13 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.586e-05/0.00718, allocations: 7.609 kB / 0.5418 GB, free: 36.13 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.268e-05/0.007202, allocations: 14.69 kB / 0.5419 GB, free: 36.12 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.007204, allocations: 0 / 0.5419 GB, free: 36.12 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.007209, allocations: 5.375 kB / 0.5419 GB, free: 36.12 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.007212, allocations: 0 / 0.5419 GB, free: 36.12 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.007314, allocations: 153.6 kB / 0.542 GB, free: 35.95 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.007315, allocations: 2.156 kB / 0.542 GB, free: 35.95 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.573e-05/0.007391, allocations: 22.14 kB / 0.542 GB, free: 35.95 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.007392, allocations: 1.25 kB / 0.542 GB, free: 35.95 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.007403, allocations: 4.609 kB / 0.542 GB, free: 35.95 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.007405, allocations: 6.688 kB / 0.542 GB, free: 35.94 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.007406, allocations: 3.984 kB / 0.542 GB, free: 35.94 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003567/0.007763, allocations: 288.9 kB / 0.5423 GB, free: 35.77 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 1.044e-05/0.007773, allocations: 14.89 kB / 0.5423 GB, free: 35.76 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.007786, allocations: 4 kB / 0.5423 GB, free: 35.75 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.915e-05/0.007845, allocations: 13.98 kB / 0.5423 GB, free: 35.75 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.222e-05/0.007888, allocations: 6.75 kB / 0.5424 GB, free: 35.75 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.007893, allocations: 5.203 kB / 0.5424 GB, free: 35.75 MB / 490.8 MB Notification: Performance of sorting global known variables: time 3.271e-05/0.007926, allocations: 99.45 kB / 0.5425 GB, free: 35.67 MB / 490.8 MB Notification: Performance of sort global known variables: time 5e-08/0.007926, allocations: 0 / 0.5425 GB, free: 35.67 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0001497/0.008076, allocations: 14.28 kB / 0.5425 GB, free: 35.67 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (timeExtrema.ymax,timeExtrema.ymin) * 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 (5): * Single equations (assignments): 5 * 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.0004077/0.008483, allocations: 0.8138 MB / 0.5433 GB, free: 34.97 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0002341/0.008717, allocations: 106 kB / 0.5434 GB, free: 34.96 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.008719, allocations: 0 / 0.5434 GB, free: 34.96 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 9.51e-05/0.008814, allocations: 59.5 kB / 0.5434 GB, free: 34.94 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001929/0.009007, allocations: 9.031 kB / 0.5434 GB, free: 34.94 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.01019, allocations: 1.63 MB / 0.545 GB, free: 33.64 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.038e-05/0.01024, allocations: 79.11 kB / 0.5451 GB, free: 33.56 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 3.482e-05/0.01028, allocations: 3.25 kB / 0.5451 GB, free: 33.56 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.7e-05/0.01032, allocations: 30.91 kB / 0.5451 GB, free: 33.54 MB / 490.8 MB Notification: Performance of SimCode: time 5.91e-07/0.01032, allocations: 0 / 0.5451 GB, free: 33.54 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01533/0.02566, allocations: 2.812 MB / 0.5479 GB, free: 32.58 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.536/6.562, allocations: 4.516 kB / 0.5479 GB, free: 32.58 MB / 490.8 MB " [Timeout remaining time 793] (rm -f ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; mkfifo ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; head -c 1048576 < ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe >> ../files/ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat --tempDir=temp_ClaRa_ClaRa_Components_Utilities_Blocks_Check_TestMinMax_fmu --startTime=0 --stopTime=300 --stepSize=0.12 --timeout=800 --tolerance=1e-06 ClaRa_ClaRa_Components_Utilities_Blocks_Check_TestMinMax.fmu > ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe 2>&1) [Timeout 840.0] diffSimulationResults("ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.TestMinMax.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 800] "" [Timeout remaining time 800] "" Variables in the reference:Time,timeExtrema.ymax,timeExtrema.ymin Variables in the result:T.k1,T.k2,T.u1,T.u2,T.y,der(timeExtrema.ymax),der(timeExtrema.ymin),ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,timeExtrema.initOption,timeExtrema.samplingTime,timeExtrema.startTime,timeExtrema.u,timeExtrema.y_max,timeExtrema.y_min,timeExtrema.y_start[1],timeExtrema.y_start[2],timeExtrema.ymax,timeExtrema.ymin [Calling sys.exit(0), Time elapsed: 9.280162256211042]