Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_10_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.00728/0.00728, allocations: 98.14 kB / 15.73 MB, free: 6.062 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.001695/0.001696, allocations: 195.7 kB / 16.68 MB, free: 5.969 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.303/2.303, allocations: 437.1 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 63.91 kB / 1.018 GB, free: 9.848 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7157/0.7175, allocations: 151.6 MB / 1.166 GB, free: 3.754 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00164/0.7192, allocations: 0.6197 MB / 1.167 GB, free: 3.141 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001507/0.7207, allocations: 1.282 MB / 1.168 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.123e-05/0.7208, allocations: 0 / 1.168 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.609e-05/0.7208, allocations: 3.938 kB / 1.168 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 1.649e-05/0.7208, allocations: 0 / 1.168 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.7212, allocations: 75.73 kB / 1.168 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.153e-05/0.7212, allocations: 23.91 kB / 1.168 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.54e-05/0.7213, allocations: 8 kB / 1.168 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.197e-05/0.7213, allocations: 11.98 kB / 1.168 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.398e-05/0.7214, allocations: 19.86 kB / 1.168 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.7214, allocations: 4 kB / 1.168 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002115/0.7216, allocations: 99.89 kB / 1.168 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.399e-05/0.7216, allocations: 3.984 kB / 1.168 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.545e-05/0.7216, allocations: 15.92 kB / 1.168 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.7218, allocations: 63.52 kB / 1.168 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.7218, allocations: 7.984 kB / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.342e-06/0.7218, allocations: 0 / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.7218, allocations: 0 / 1.168 GB, free: 1.516 MB / 0.8887 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.0004192/0.7223, allocations: 351.3 kB / 1.169 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.7223, allocations: 12.92 kB / 1.169 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.523e-05/0.7223, allocations: 42.67 kB / 1.169 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.22e-05/0.7224, allocations: 0.9375 kB / 1.169 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.7225, allocations: 164.4 kB / 1.169 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.7225, allocations: 384 / 1.169 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/0.7225, allocations: 12.27 kB / 1.169 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.7226, allocations: 61.8 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.7227, allocations: 0 / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.724e-06/0.7227, allocations: 0 / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.7227, allocations: 0 / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.59e-05/0.7227, allocations: 23.98 kB / 1.169 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001712/0.7229, allocations: 173.6 kB / 1.169 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001123/0.723, allocations: 62.48 kB / 1.169 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.542e-05/0.7231, allocations: 28.84 kB / 1.169 GB, free: 452 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005158/0.7236, allocations: 0.5661 MB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.7237, allocations: 38.5 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.7237, allocations: 0 / 1.17 GB, free: 15.7 MB / 0.9044 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.01878/0.7424, allocations: 4.365 MB / 1.174 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.7425, allocations: 59.34 kB / 1.174 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.11e-05/0.7426, allocations: 89.86 kB / 1.174 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.793e-05/0.7427, allocations: 29.7 kB / 1.174 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.34e-05/0.7427, allocations: 80.14 kB / 1.174 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.7428, allocations: 59.61 kB / 1.174 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002501/0.7431, allocations: 97.66 kB / 1.175 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.7432, allocations: 318.8 kB / 1.175 GB, free: 10.41 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005223/0.7437, allocations: 307.9 kB / 1.175 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00052/0.7442, allocations: 318.2 kB / 1.175 GB, free: 9.801 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001509/0.7458, allocations: 0.7662 MB / 1.176 GB, free: 9.031 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.7458, allocations: 0 / 1.176 GB, free: 9.031 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001529/0.7473, allocations: 0.804 MB / 1.177 GB, free: 8.223 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.7473, allocations: 4 kB / 1.177 GB, free: 8.219 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.7473, allocations: 4 kB / 1.177 GB, free: 8.215 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.7474, allocations: 0 / 1.177 GB, free: 8.215 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007696/0.7481, allocations: 95.89 kB / 1.177 GB, free: 8.121 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.7481, allocations: 4 kB / 1.177 GB, free: 8.117 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005051/0.7487, allocations: 11.92 kB / 1.177 GB, free: 8.105 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.166e-05/0.7487, allocations: 31.98 kB / 1.177 GB, free: 8.074 MB / 0.9044 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.0001674/0.7489, allocations: 121.8 kB / 1.177 GB, free: 7.945 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.338e-05/0.749, allocations: 7.953 kB / 1.177 GB, free: 7.938 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003027/0.752, allocations: 1.396 MB / 1.179 GB, free: 6.527 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.752, allocations: 4 kB / 1.179 GB, free: 6.523 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.7521, allocations: 3.984 kB / 1.179 GB, free: 6.52 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.7521, allocations: 4 kB / 1.179 GB, free: 6.516 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00283/0.7549, allocations: 1.814 MB / 1.18 GB, free: 4.645 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.7549, allocations: 0 / 1.18 GB, free: 4.645 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000745/0.7557, allocations: 107.9 kB / 1.181 GB, free: 4.539 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.7557, allocations: 4 kB / 1.181 GB, free: 4.535 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-05/0.7558, allocations: 31.92 kB / 1.181 GB, free: 4.504 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.7558, allocations: 4 kB / 1.181 GB, free: 4.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.7558, allocations: 0.9375 kB / 1.181 GB, free: 4.5 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/0.7582, allocations: 1.47 MB / 1.182 GB, free: 3.008 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.356e-05/0.7582, allocations: 89.03 kB / 1.182 GB, free: 2.902 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.538e-05/0.7583, allocations: 11.94 kB / 1.182 GB, free: 2.891 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004885/0.7588, allocations: 8 kB / 1.182 GB, free: 2.883 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.759, allocations: 47.97 kB / 1.182 GB, free: 2.836 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.653e-05/0.759, allocations: 35.98 kB / 1.182 GB, free: 2.801 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.942e-05/0.7591, allocations: 75.28 kB / 1.182 GB, free: 2.727 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7591, allocations: 0 / 1.182 GB, free: 2.727 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0005223/0.7596, allocations: 183.8 kB / 1.182 GB, free: 2.547 MB / 0.9044 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.003028/0.7627, allocations: 2.131 MB / 1.184 GB, free: 392 kB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001243/0.7639, allocations: 0.7224 MB / 1.185 GB, free: 15.66 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.7639, allocations: 64 / 1.185 GB, free: 15.66 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0006552/0.7646, allocations: 464 kB / 1.186 GB, free: 15.2 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.7649, allocations: 18.23 kB / 1.186 GB, free: 15.19 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007261/0.7722, allocations: 3.728 MB / 1.189 GB, free: 11.38 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.7725, allocations: 0.7142 MB / 1.19 GB, free: 10.64 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0009532/0.7734, allocations: 297.5 kB / 1.19 GB, free: 10.34 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005528/0.774, allocations: 115.4 kB / 1.19 GB, free: 10.23 MB / 0.92 GB Notification: Performance of SimCode: time 4.01e-07/0.774, allocations: 0 / 1.19 GB, free: 10.23 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.913/2.687, allocations: 12.72 MB / 1.203 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.552/12.24, allocations: 12.03 kB / 1.203 GB, free: 13.64 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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