Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008556/0.0008557, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005099/0.005099, allocations: 171.4 kB / 16.27 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.219/1.219, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.124/2.124, allocations: 390.9 MB / 0.6664 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003367/0.0003368, allocations: 12 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5573/0.5576, allocations: 142.4 MB / 0.9552 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.000609/0.5583, allocations: 345.8 kB / 0.9555 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001212/0.5595, allocations: 1.277 MB / 0.9568 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.373e-05/0.5595, allocations: 0 / 0.9568 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.099e-05/0.5596, allocations: 4 kB / 0.9568 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.107e-05/0.5596, allocations: 0 / 0.9568 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.5599, allocations: 50.83 kB / 0.9568 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.659e-05/0.5599, allocations: 22.39 kB / 0.9568 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.537e-05/0.56, allocations: 8.984 kB / 0.9568 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.856e-05/0.56, allocations: 5.688 kB / 0.9568 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.409e-05/0.56, allocations: 20.34 kB / 0.9569 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.042e-05/0.5601, allocations: 1.438 kB / 0.9569 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.5602, allocations: 101.1 kB / 0.957 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.146e-05/0.5603, allocations: 9.453 kB / 0.957 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.329e-05/0.5603, allocations: 36.27 kB / 0.957 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.5604, allocations: 67.53 kB / 0.9571 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.5604, allocations: 0 / 0.9571 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.372e-06/0.5604, allocations: 0 / 0.9571 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.5604, allocations: 0 / 0.9571 GB, free: 6.266 MB / 0.7169 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.0002817/0.5607, allocations: 343 kB / 0.9574 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.5608, allocations: 9.406 kB / 0.9574 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.531e-05/0.5608, allocations: 36.05 kB / 0.9574 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.144e-05/0.5608, allocations: 11.44 kB / 0.9575 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.776e-05/0.5609, allocations: 165.8 kB / 0.9576 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.617e-06/0.5609, allocations: 5.312 kB / 0.9576 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.5609, allocations: 3.031 kB / 0.9576 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/0.561, allocations: 61.09 kB / 0.9577 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.561, allocations: 4.906 kB / 0.9577 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-06/0.5611, allocations: 1.094 kB / 0.9577 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.5611, allocations: 0.9375 kB / 0.9577 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.593e-05/0.5611, allocations: 21.42 kB / 0.9577 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001124/0.5612, allocations: 173.9 kB / 0.9579 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.104e-05/0.5613, allocations: 64.05 kB / 0.9579 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.339e-05/0.5614, allocations: 23.77 kB / 0.958 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002995/0.5617, allocations: 0.5607 MB / 0.9585 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.636e-05/0.5617, allocations: 40.28 kB / 0.9585 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.5617, allocations: 0 / 0.9585 GB, free: 4.59 MB / 0.7169 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.0177/0.5794, allocations: 4.277 MB / 0.9627 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.584e-05/0.5795, allocations: 53.38 kB / 0.9628 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.723e-05/0.5795, allocations: 94.86 kB / 0.9629 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.535e-05/0.5796, allocations: 30.89 kB / 0.9629 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.253e-05/0.5796, allocations: 81.08 kB / 0.963 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.099e-05/0.5797, allocations: 53.89 kB / 0.963 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.609e-05/0.5798, allocations: 21.39 kB / 0.963 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.702e-05/0.5798, allocations: 321.1 kB / 0.9633 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004511/0.5803, allocations: 314.4 kB / 0.9636 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004302/0.5807, allocations: 307.2 kB / 0.9639 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.5821, allocations: 0.7842 MB / 0.9647 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.5821, allocations: 0 / 0.9647 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001387/0.5835, allocations: 0.7993 MB / 0.9655 GB, free: 396 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.5835, allocations: 5.156 kB / 0.9655 GB, free: 396 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.5835, allocations: 0 / 0.9655 GB, free: 396 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.5836, allocations: 0.9375 kB / 0.9655 GB, free: 396 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007899/0.5844, allocations: 100.9 kB / 0.9656 GB, free: 372 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.5844, allocations: 1.031 kB / 0.9656 GB, free: 372 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005097/0.5849, allocations: 8.906 kB / 0.9656 GB, free: 368 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-05/0.585, allocations: 31.64 kB / 0.9656 GB, free: 364 kB / 0.7169 GB 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 (18): * Single equations (assignments): 18 * 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 0.0001556/0.5851, allocations: 121.9 kB / 0.9657 GB, free: 236 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.945e-05/0.5852, allocations: 10.8 kB / 0.9658 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003325/0.5885, allocations: 1.412 MB / 0.9671 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.5886, allocations: 4.594 kB / 0.9671 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.5886, allocations: 0 / 0.9671 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.5886, allocations: 1.094 kB / 0.9671 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002642/0.5912, allocations: 1.809 MB / 0.9689 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.5912, allocations: 0 / 0.9689 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007611/0.592, allocations: 109.5 kB / 0.969 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.758e-06/0.592, allocations: 2 kB / 0.969 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.666e-05/0.5921, allocations: 33.53 kB / 0.969 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.5921, allocations: 2.156 kB / 0.969 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5921, allocations: 1.094 kB / 0.969 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002239/0.5943, allocations: 1.48 MB / 0.9705 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.775e-05/0.5944, allocations: 93.86 kB / 0.9706 GB, free: 13.15 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.48e-05/0.5945, allocations: 10.94 kB / 0.9706 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005104/0.595, allocations: 14.69 kB / 0.9706 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.5951, allocations: 37.69 kB / 0.9706 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.651e-05/0.5952, allocations: 33.98 kB / 0.9707 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.781e-05/0.5952, allocations: 80.53 kB / 0.9707 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5952, allocations: 0 / 0.9707 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005273/0.5958, allocations: 175.4 kB / 0.9709 GB, free: 13.02 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * 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 (40): * Single equations (assignments): 40 * 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.002757/0.5985, allocations: 2.132 MB / 0.973 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001121/0.5997, allocations: 0.7306 MB / 0.9737 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5997, allocations: 0 / 0.9737 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006077/0.6003, allocations: 454.8 kB / 0.9741 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.6006, allocations: 17.31 kB / 0.9742 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006843/0.6075, allocations: 3.773 MB / 0.9778 GB, free: 7.371 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.6077, allocations: 0.7145 MB / 0.9785 GB, free: 6.633 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001301/0.609, allocations: 293.5 kB / 0.9788 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005293/0.6095, allocations: 119.4 kB / 0.9789 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.6095, allocations: 0 / 0.9789 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/0.6313, allocations: 11.92 MB / 0.9906 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/0.6316, allocations: 225.9 kB / 0.9908 GB, free: 10.27 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.657/2.289, allocations: 0 / 0.9908 GB, free: 10.27 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,x,y,der(x),der(y),d2y,d3y Variables in the result:d1y,d2y,d3y,delta,deltax,der(d1y),der(d2y),der(deltax),der(der(deltax)),der(der(der(deltax))),der(der(der(x))),der(der(x)),der(x),der(y),der(y_comp),err,time,x,y,y_comp