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.008131/0.008131, allocations: 100 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.001736/0.001736, allocations: 193.8 kB / 16.68 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.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.664/2.664, allocations: 437 MB / 0.7105 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 75.88 kB / 1.018 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3058, allocations: 151.6 MB / 1.166 GB, free: 7.242 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00171/0.3075, allocations: 0.6104 MB / 1.167 GB, free: 6.633 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001777/0.3093, allocations: 1.291 MB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.55e-05/0.3094, allocations: 0 / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.104e-05/0.3094, allocations: 0 / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.26e-05/0.3095, allocations: 3.938 kB / 1.168 GB, free: 5.32 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004473/0.3099, allocations: 79.73 kB / 1.168 GB, free: 5.242 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.439e-05/0.31, allocations: 23.97 kB / 1.168 GB, free: 5.219 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.786e-05/0.31, allocations: 3.938 kB / 1.168 GB, free: 5.215 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.524e-05/0.3101, allocations: 8 kB / 1.168 GB, free: 5.207 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.195e-05/0.3101, allocations: 23.91 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.3102, allocations: 0 / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002819/0.3105, allocations: 99.88 kB / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.95e-05/0.3105, allocations: 8 kB / 1.168 GB, free: 5.078 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.267e-05/0.3105, allocations: 7.875 kB / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.3107, allocations: 72.06 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3107, allocations: 0 / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3107, allocations: 4 kB / 1.168 GB, free: 4.996 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.3107, allocations: 0 / 1.168 GB, free: 4.996 MB / 0.92 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.0004731/0.3112, allocations: 355.3 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.3112, allocations: 8.031 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.914e-05/0.3113, allocations: 38.69 kB / 1.169 GB, free: 4.547 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.138e-05/0.3113, allocations: 4.938 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.3114, allocations: 164.3 kB / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.3114, allocations: 384 / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.854e-05/0.3115, allocations: 12.33 kB / 1.169 GB, free: 4.332 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.3116, allocations: 61.78 kB / 1.169 GB, free: 4.266 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.3116, allocations: 0 / 1.169 GB, free: 4.266 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.3117, allocations: 0 / 1.169 GB, free: 4.266 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3117, allocations: 4 kB / 1.169 GB, free: 4.262 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.873e-05/0.3117, allocations: 23.98 kB / 1.169 GB, free: 4.238 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001725/0.3119, allocations: 169.5 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001155/0.312, allocations: 58.56 kB / 1.169 GB, free: 3.957 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.29e-05/0.3121, allocations: 28.84 kB / 1.169 GB, free: 3.926 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004879/0.3126, allocations: 0.5544 MB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.3126, allocations: 42.5 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.3126, allocations: 0 / 1.17 GB, free: 3.191 MB / 0.92 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.0209/0.3335, allocations: 4.372 MB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.3336, allocations: 55.41 kB / 1.174 GB, free: 14.6 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.716e-05/0.3337, allocations: 89.86 kB / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 7.623e-05/0.3338, allocations: 33.7 kB / 1.174 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.696e-05/0.3338, allocations: 88.2 kB / 1.174 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.3339, allocations: 59.52 kB / 1.174 GB, free: 14.31 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002539/0.3342, allocations: 89.67 kB / 1.175 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.3343, allocations: 322.8 kB / 1.175 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005572/0.3349, allocations: 311.9 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005747/0.3355, allocations: 307.9 kB / 1.175 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/0.3371, allocations: 0.772 MB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.3371, allocations: 3.938 kB / 1.176 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001617/0.3388, allocations: 0.8042 MB / 1.177 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.3388, allocations: 4 kB / 1.177 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.3388, allocations: 0 / 1.177 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3388, allocations: 4 kB / 1.177 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009079/0.3397, allocations: 99.88 kB / 1.177 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/0.3398, allocations: 0 / 1.177 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005685/0.3403, allocations: 4 kB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.071e-05/0.3404, allocations: 32.3 kB / 1.177 GB, free: 11.56 MB / 0.9356 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.0002111/0.3406, allocations: 125.8 kB / 1.177 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.989e-05/0.3407, allocations: 15.89 kB / 1.177 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003083/0.3438, allocations: 1.396 MB / 1.179 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.3439, allocations: 8 kB / 1.179 GB, free: 10 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.3439, allocations: 0 / 1.179 GB, free: 10 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.3439, allocations: 0 / 1.179 GB, free: 10 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003279/0.3472, allocations: 1.818 MB / 1.18 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3472, allocations: 0 / 1.18 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008562/0.3481, allocations: 111.9 kB / 1.18 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.3481, allocations: 0 / 1.18 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.419e-05/0.3482, allocations: 31.94 kB / 1.181 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.3482, allocations: 0 / 1.181 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3482, allocations: 0 / 1.181 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002589/0.3508, allocations: 1.47 MB / 1.182 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.514e-05/0.3509, allocations: 96.97 kB / 1.182 GB, free: 6.375 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.351, allocations: 7.938 kB / 1.182 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000592/0.3516, allocations: 12 kB / 1.182 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.3517, allocations: 43.95 kB / 1.182 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-05/0.3518, allocations: 32 kB / 1.182 GB, free: 6.281 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.831e-05/0.3519, allocations: 79.34 kB / 1.182 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3519, allocations: 0 / 1.182 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0007373/0.3526, allocations: 183.7 kB / 1.182 GB, free: 6.023 MB / 0.9356 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.003638/0.3563, allocations: 2.134 MB / 1.184 GB, free: 3.859 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001401/0.3577, allocations: 0.7302 MB / 1.185 GB, free: 3.129 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.3577, allocations: 4 kB / 1.185 GB, free: 3.125 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0007118/0.3585, allocations: 452 kB / 1.186 GB, free: 2.684 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.3588, allocations: 16 kB / 1.186 GB, free: 2.668 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008399/0.3672, allocations: 3.724 MB / 1.189 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.3676, allocations: 0.722 MB / 1.19 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001062/0.3687, allocations: 289.5 kB / 1.19 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006137/0.3693, allocations: 115.4 kB / 1.19 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of SimCode: time 1.142e-06/0.3693, allocations: 4 kB / 1.19 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03427/0.4036, allocations: 12.72 MB / 1.203 GB, free: 1.184 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.9/8.304, allocations: 12.02 kB / 1.203 GB, free: 1.176 MB / 0.9512 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)