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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.007493/0.007493, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001642/0.001642, allocations: 186.2 kB / 16.67 MB, free: 5.973 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.244/1.244, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.123/2.123, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 72.31 kB / 0.9504 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2283, allocations: 140.4 MB / 1.088 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001425/0.2297, allocations: 0.6115 MB / 1.088 GB, free: 1.355 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.2311, allocations: 1.293 MB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.782e-05/0.2311, allocations: 0 / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 8.256e-06/0.2311, allocations: 0 / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 1.67e-05/0.2311, allocations: 4 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002958/0.2314, allocations: 75.72 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.652e-05/0.2315, allocations: 27.92 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 2.38e-05/0.2315, allocations: 0 / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.629e-05/0.2315, allocations: 7.938 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.018e-05/0.2316, allocations: 19.97 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.226e-06/0.2316, allocations: 0 / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.2318, allocations: 99.88 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.476e-05/0.2318, allocations: 11.94 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.793e-05/0.2318, allocations: 15.92 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001033/0.2319, allocations: 63.86 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.2319, allocations: 0 / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2319, allocations: 0 / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.232, allocations: 0 / 1.09 GB, free: 15.73 MB / 0.8575 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.0003262/0.2323, allocations: 350.4 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 2.774e-05/0.2323, allocations: 8.031 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.575e-05/0.2324, allocations: 34.75 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.291e-05/0.2324, allocations: 8.844 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.2325, allocations: 172.3 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.432e-06/0.2325, allocations: 384 / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.2325, allocations: 8.375 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.84e-05/0.2326, allocations: 53.8 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.2326, allocations: 0 / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.475e-06/0.2327, allocations: 4 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.705e-06/0.2327, allocations: 4 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.178e-05/0.2327, allocations: 23.97 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.2329, allocations: 166.2 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.549e-05/0.233, allocations: 62.5 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.433e-05/0.233, allocations: 20.84 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004011/0.2334, allocations: 0.5583 MB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.2334, allocations: 42.5 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.2334, allocations: 3.938 kB / 1.091 GB, free: 13.93 MB / 0.8575 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.01879/0.2522, allocations: 4.365 MB / 1.095 GB, free: 9.406 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.771e-05/0.2523, allocations: 55.41 kB / 1.095 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.523e-05/0.2523, allocations: 101.8 kB / 1.096 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.676e-05/0.2524, allocations: 29.7 kB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.482e-05/0.2525, allocations: 80.14 kB / 1.096 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.704e-05/0.2526, allocations: 55.19 kB / 1.096 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002337/0.2528, allocations: 93.67 kB / 1.096 GB, free: 8.961 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.373e-05/0.2529, allocations: 318.8 kB / 1.096 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004939/0.2534, allocations: 311.9 kB / 1.096 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005044/0.2539, allocations: 313.3 kB / 1.097 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.2554, allocations: 0.7802 MB / 1.097 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.2554, allocations: 0 / 1.097 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001465/0.2568, allocations: 0.7981 MB / 1.098 GB, free: 6.445 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.2569, allocations: 4 kB / 1.098 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.2569, allocations: 0 / 1.098 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.2569, allocations: 7.984 kB / 1.098 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008004/0.2577, allocations: 95.88 kB / 1.098 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.2577, allocations: 0 / 1.098 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005279/0.2582, allocations: 4 kB / 1.098 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.891e-05/0.2583, allocations: 39.97 kB / 1.098 GB, free: 6.297 MB / 0.8575 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.0001824/0.2585, allocations: 127.7 kB / 1.099 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.004e-05/0.2586, allocations: 4 kB / 1.099 GB, free: 6.16 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002936/0.2615, allocations: 1.399 MB / 1.1 GB, free: 4.75 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.2616, allocations: 4 kB / 1.1 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2616, allocations: 0 / 1.1 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.2616, allocations: 3.984 kB / 1.1 GB, free: 4.742 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002705/0.2643, allocations: 1.818 MB / 1.102 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2643, allocations: 0 / 1.102 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007778/0.2651, allocations: 111.9 kB / 1.102 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.2651, allocations: 0 / 1.102 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.72e-05/0.2652, allocations: 35.94 kB / 1.102 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.2652, allocations: 8.016 kB / 1.102 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2652, allocations: 0 / 1.102 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002224/0.2674, allocations: 1.463 MB / 1.103 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.822e-05/0.2675, allocations: 89.05 kB / 1.103 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.771e-05/0.2676, allocations: 11.92 kB / 1.103 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005192/0.2681, allocations: 19.94 kB / 1.103 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.2682, allocations: 35.97 kB / 1.103 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.95e-05/0.2683, allocations: 36.06 kB / 1.103 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.678e-05/0.2683, allocations: 75.28 kB / 1.104 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.2683, allocations: 0 / 1.104 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005278/0.2689, allocations: 180 kB / 1.104 GB, free: 0.7734 MB / 0.8575 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.002855/0.2717, allocations: 2.135 MB / 1.106 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001161/0.2729, allocations: 0.7226 MB / 1.106 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2729, allocations: 0 / 1.106 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006276/0.2736, allocations: 459.6 kB / 1.107 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/0.2739, allocations: 13.88 kB / 1.107 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007141/0.281, allocations: 3.71 MB / 1.111 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.2813, allocations: 0.722 MB / 1.111 GB, free: 8.883 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0009287/0.2822, allocations: 297.5 kB / 1.112 GB, free: 8.59 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005343/0.2828, allocations: 119.4 kB / 1.112 GB, free: 8.473 MB / 0.8731 GB Notification: Performance of SimCode: time 2.81e-07/0.2828, allocations: 0 / 1.112 GB, free: 8.473 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.793/2.076, allocations: 12.71 MB / 1.124 GB, free: 11.9 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/12.28, allocations: 13.56 kB / 1.124 GB, free: 11.89 MB / 0.8887 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