Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_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.007283/0.007283, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.002107/0.002107, allocations: 197.4 kB / 16.67 MB, free: 5.977 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.854/2.854, allocations: 482.4 MB / 0.7548 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 63.91 kB / 1.083 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2735, allocations: 162.2 MB / 1.241 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001649/0.2752, allocations: 0.6367 MB / 1.242 GB, free: 9.594 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00167/0.2769, allocations: 1.268 MB / 1.243 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.393e-05/0.2769, allocations: 0 / 1.243 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.405e-05/0.2769, allocations: 7.875 kB / 1.243 GB, free: 8.301 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.335e-05/0.277, allocations: 0 / 1.243 GB, free: 8.301 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003948/0.2774, allocations: 83.72 kB / 1.243 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 5.636e-05/0.2774, allocations: 19.98 kB / 1.243 GB, free: 8.199 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.252e-05/0.2775, allocations: 0 / 1.243 GB, free: 8.199 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.453e-05/0.2775, allocations: 15.98 kB / 1.243 GB, free: 8.184 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.653e-05/0.2776, allocations: 19.91 kB / 1.243 GB, free: 8.164 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.099e-05/0.2776, allocations: 0 / 1.243 GB, free: 8.164 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002276/0.2778, allocations: 95.84 kB / 1.244 GB, free: 8.07 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.418e-05/0.2778, allocations: 19.91 kB / 1.244 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.605e-05/0.2779, allocations: 7.938 kB / 1.244 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.278, allocations: 63.86 kB / 1.244 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.278, allocations: 0 / 1.244 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.278, allocations: 4 kB / 1.244 GB, free: 7.977 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.2781, allocations: 0 / 1.244 GB, free: 7.977 MB / 0.9981 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.0004465/0.2785, allocations: 355.2 kB / 1.244 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.2785, allocations: 8.031 kB / 1.244 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.2786, allocations: 38.73 kB / 1.244 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.575e-05/0.2786, allocations: 4.938 kB / 1.244 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.2788, allocations: 160.4 kB / 1.244 GB, free: 7.328 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.2788, allocations: 8.375 kB / 1.244 GB, free: 7.32 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.273e-05/0.2788, allocations: 8.266 kB / 1.244 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.2789, allocations: 61.73 kB / 1.244 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.2789, allocations: 0 / 1.244 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.279, allocations: 4 kB / 1.244 GB, free: 7.242 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-06/0.279, allocations: 0 / 1.244 GB, free: 7.242 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.615e-05/0.279, allocations: 23.98 kB / 1.244 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001893/0.2792, allocations: 165.6 kB / 1.244 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.2794, allocations: 62.56 kB / 1.245 GB, free: 6.938 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.247e-05/0.2794, allocations: 36.77 kB / 1.245 GB, free: 6.898 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005306/0.28, allocations: 0.5544 MB / 1.245 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.28, allocations: 42.5 kB / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 3.056e-06/0.28, allocations: 4 kB / 1.245 GB, free: 6.16 MB / 0.9981 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.02081/0.3008, allocations: 4.361 MB / 1.249 GB, free: 1.641 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.3009, allocations: 55.39 kB / 1.249 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.659e-05/0.3009, allocations: 93.86 kB / 1.25 GB, free: 1.473 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.814e-05/0.301, allocations: 33.7 kB / 1.25 GB, free: 1.434 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.893e-05/0.3011, allocations: 80.14 kB / 1.25 GB, free: 1.352 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.3012, allocations: 59.47 kB / 1.25 GB, free: 1.293 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002724/0.3015, allocations: 93.58 kB / 1.25 GB, free: 1.195 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3016, allocations: 326.8 kB / 1.25 GB, free: 0.8672 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005685/0.3022, allocations: 307.9 kB / 1.25 GB, free: 0.5664 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005662/0.3028, allocations: 315.8 kB / 1.251 GB, free: 264 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.466/0.7688, allocations: 0.765 MB / 1.251 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.7688, allocations: 0.5625 kB / 1.251 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001565/0.7704, allocations: 0.8026 MB / 1.252 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.7704, allocations: 6.031 kB / 1.252 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.7704, allocations: 1.031 kB / 1.252 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.7704, allocations: 1.094 kB / 1.252 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008697/0.7713, allocations: 94.42 kB / 1.252 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.7713, allocations: 2.578 kB / 1.252 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005498/0.7719, allocations: 5.438 kB / 1.252 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.345e-05/0.772, allocations: 37.66 kB / 1.252 GB, free: 15.24 MB / 0.9981 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.0001519/0.7721, allocations: 120.1 kB / 1.253 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.897e-05/0.7722, allocations: 13.2 kB / 1.253 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003107/0.7753, allocations: 1.397 MB / 1.254 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.7753, allocations: 3.969 kB / 1.254 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.7754, allocations: 1.031 kB / 1.254 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.7754, allocations: 2.156 kB / 1.254 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002717/0.7781, allocations: 1.816 MB / 1.256 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.7781, allocations: 0 / 1.256 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008092/0.7789, allocations: 112.5 kB / 1.256 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.7789, allocations: 2.031 kB / 1.256 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.733e-05/0.779, allocations: 35 kB / 1.256 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.779, allocations: 2.062 kB / 1.256 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.779, allocations: 1 kB / 1.256 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002267/0.7813, allocations: 1.462 MB / 1.257 GB, free: 12.85 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.33e-05/0.7813, allocations: 93.95 kB / 1.257 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.689e-05/0.7814, allocations: 15 kB / 1.257 GB, free: 12.74 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005345/0.782, allocations: 14.91 kB / 1.257 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.7821, allocations: 39.14 kB / 1.257 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-05/0.7822, allocations: 32.23 kB / 1.257 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 1.602e-05/0.7822, allocations: 80.81 kB / 1.258 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7822, allocations: 0 / 1.258 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005509/0.7828, allocations: 179.2 kB / 1.258 GB, free: 12.64 MB / 0.9981 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.002814/0.7856, allocations: 2.136 MB / 1.26 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001239/0.7869, allocations: 0.7295 MB / 1.26 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.7869, allocations: 1.031 kB / 1.26 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005716/0.7875, allocations: 451.1 kB / 1.261 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.7878, allocations: 14.38 kB / 1.261 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006841/0.7946, allocations: 3.729 MB / 1.265 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.7948, allocations: 0.7181 MB / 1.265 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000966/0.7957, allocations: 293.7 kB / 1.266 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005816/0.7963, allocations: 117.8 kB / 1.266 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of SimCode: time 2.4e-07/0.7963, allocations: 0 / 1.266 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03596/0.8323, allocations: 12.73 MB / 1.278 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.682/8.515, allocations: 5.344 kB / 1.278 GB, free: 6.789 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)