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.001261/0.001261, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 191.8 kB / 16.53 MB, free: 6.664 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.318/1.318, allocations: 222.9 MB / 240.2 MB, free: 4.422 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.451/2.451, allocations: 390.2 MB / 0.6647 GB, free: 480 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 67.89 kB / 0.8127 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6363/0.6378, allocations: 140.4 MB / 0.9497 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001693/0.6396, allocations: 0.602 MB / 0.9503 GB, free: 8.77 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001332/0.6409, allocations: 1.281 MB / 0.9516 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.936e-05/0.641, allocations: 1.406 kB / 0.9516 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.504e-05/0.641, allocations: 0 / 0.9516 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.55e-05/0.641, allocations: 3.938 kB / 0.9516 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000418/0.6414, allocations: 69.89 kB / 0.9516 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.468e-05/0.6415, allocations: 22.92 kB / 0.9517 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.673e-05/0.6416, allocations: 10.66 kB / 0.9517 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.727e-05/0.6416, allocations: 13 kB / 0.9517 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.704e-05/0.6417, allocations: 19.86 kB / 0.9517 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.6417, allocations: 2.281 kB / 0.9517 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002529/0.642, allocations: 96.67 kB / 0.9518 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.691e-05/0.642, allocations: 9.422 kB / 0.9518 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.878e-05/0.642, allocations: 6.688 kB / 0.9518 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.6422, allocations: 75.22 kB / 0.9519 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.6422, allocations: 0 / 0.9519 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.043e-06/0.6422, allocations: 1.25 kB / 0.9519 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.6422, allocations: 0 / 0.9519 GB, free: 7.539 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.0005073/0.6427, allocations: 361.3 kB / 0.9522 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/0.6428, allocations: 10.66 kB / 0.9522 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.667e-05/0.6428, allocations: 40.17 kB / 0.9523 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.54e-05/0.6429, allocations: 2.406 kB / 0.9523 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.643, allocations: 165.5 kB / 0.9524 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.643, allocations: 9.812 kB / 0.9525 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.366e-05/0.6431, allocations: 8.031 kB / 0.9525 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001412/0.6432, allocations: 52.83 kB / 0.9525 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.6432, allocations: 3.906 kB / 0.9525 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.6432, allocations: 9.062 kB / 0.9525 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.6433, allocations: 1.281 kB / 0.9525 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.218e-05/0.6433, allocations: 25.42 kB / 0.9525 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001935/0.6435, allocations: 165.5 kB / 0.9527 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.6437, allocations: 56.72 kB / 0.9528 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.969e-05/0.6437, allocations: 23.5 kB / 0.9528 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004531/0.6442, allocations: 0.5662 MB / 0.9533 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.6442, allocations: 36 kB / 0.9534 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.6442, allocations: 0 / 0.9534 GB, free: 5.852 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.01953/0.6637, allocations: 4.357 MB / 0.9576 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/0.6638, allocations: 61.58 kB / 0.9577 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.44e-05/0.6638, allocations: 96.08 kB / 0.9578 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.143e-05/0.6639, allocations: 26.83 kB / 0.9578 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.299e-05/0.6639, allocations: 88.06 kB / 0.9579 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.664, allocations: 58.05 kB / 0.9579 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/0.6643, allocations: 95.8 kB / 0.958 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.557e-05/0.6643, allocations: 321 kB / 0.9583 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005004/0.6649, allocations: 309.9 kB / 0.9586 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004914/0.6654, allocations: 311.9 kB / 0.9589 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001476/0.6668, allocations: 0.7734 MB / 0.9597 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.6668, allocations: 0 / 0.9597 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001482/0.6683, allocations: 0.795 MB / 0.9605 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.6684, allocations: 13.27 kB / 0.9605 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.6684, allocations: 1.156 kB / 0.9605 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.6684, allocations: 5.125 kB / 0.9605 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008572/0.6692, allocations: 87.7 kB / 0.9606 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.6693, allocations: 1.375 kB / 0.9606 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005567/0.6698, allocations: 5.312 kB / 0.9606 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-05/0.6699, allocations: 39.19 kB / 0.9606 GB, free: 1.551 MB / 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.0001667/0.6701, allocations: 121.6 kB / 0.9607 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.924e-05/0.6702, allocations: 7.656 kB / 0.9607 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/0.6734, allocations: 1.403 MB / 0.9621 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.6735, allocations: 3.781 kB / 0.9621 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.6735, allocations: 0.6875 kB / 0.9621 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.6735, allocations: 9.125 kB / 0.9621 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002777/0.6763, allocations: 1.809 MB / 0.9639 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.6763, allocations: 1.125 kB / 0.9639 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008143/0.6771, allocations: 104.1 kB / 0.964 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.6771, allocations: 2.75 kB / 0.964 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.318e-05/0.6772, allocations: 32.86 kB / 0.964 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.6772, allocations: 6.688 kB / 0.964 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.6772, allocations: 8.031 kB / 0.964 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/0.6795, allocations: 1.47 MB / 0.9655 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.22e-05/0.6796, allocations: 93.5 kB / 0.9656 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.622e-05/0.6797, allocations: 10.25 kB / 0.9656 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005442/0.6802, allocations: 18.5 kB / 0.9656 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.6804, allocations: 38.91 kB / 0.9656 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-05/0.6805, allocations: 38.39 kB / 0.9657 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.093e-05/0.6805, allocations: 75.28 kB / 0.9657 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6805, allocations: 1.25 kB / 0.9657 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005725/0.6811, allocations: 178.2 kB / 0.9659 GB, free: 14.22 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.002934/0.684, allocations: 2.124 MB / 0.968 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00129/0.6854, allocations: 0.748 MB / 0.9687 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.6854, allocations: 5.062 kB / 0.9687 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006458/0.686, allocations: 450.3 kB / 0.9691 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.6863, allocations: 21.25 kB / 0.9692 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007601/0.694, allocations: 3.705 MB / 0.9728 GB, free: 9.574 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.6942, allocations: 0.7181 MB / 0.9735 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0014/0.6957, allocations: 293.5 kB / 0.9738 GB, free: 8.539 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005467/0.6962, allocations: 115.4 kB / 0.9739 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of SimCode: time 4.61e-07/0.6962, allocations: 0 / 0.9739 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03315/0.7294, allocations: 12.66 MB / 0.9862 GB, free: 11.93 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.486/8.216, allocations: 7.688 kB / 0.9862 GB, free: 11.92 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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)