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.001511/0.001511, allocations: 108 kB / 15.6 MB, free: 132 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.001685/0.001685, allocations: 192 kB / 16.53 MB, free: 6.391 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.622/2.622, allocations: 437.1 MB / 0.7104 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 71.91 kB / 0.8694 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6103/0.6117, allocations: 151.6 MB / 1.017 GB, free: 2.602 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001885/0.6136, allocations: 0.6117 MB / 1.018 GB, free: 1.988 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001564/0.6152, allocations: 1.279 MB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.352e-05/0.6152, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.555e-05/0.6152, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 1.808e-05/0.6153, allocations: 3.938 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003879/0.6157, allocations: 67.75 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.988e-05/0.6157, allocations: 23.92 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.728e-05/0.6158, allocations: 15.97 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.297e-05/0.6158, allocations: 15.94 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.454e-05/0.6159, allocations: 15.92 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.6159, allocations: 4 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002226/0.6161, allocations: 103.9 kB / 1.02 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.623e-05/0.6162, allocations: 4 kB / 1.02 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.38e-05/0.6162, allocations: 11.88 kB / 1.02 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.6163, allocations: 71.89 kB / 1.02 GB, free: 368 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.6164, allocations: 0 / 1.02 GB, free: 368 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.342e-06/0.6164, allocations: 0 / 1.02 GB, free: 368 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.6164, allocations: 0 / 1.02 GB, free: 368 kB / 0.7637 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.0004438/0.6168, allocations: 357.8 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.6169, allocations: 8.031 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.832e-05/0.6169, allocations: 38.75 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.784e-05/0.6169, allocations: 0.9375 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.6171, allocations: 168.3 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.6171, allocations: 384 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.367e-05/0.6171, allocations: 12.28 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.6172, allocations: 53.8 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.6172, allocations: 4 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.6173, allocations: 0 / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.6173, allocations: 0 / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.878e-05/0.6173, allocations: 31.98 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001652/0.6175, allocations: 173.6 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001098/0.6176, allocations: 54.5 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.063e-05/0.6177, allocations: 24.86 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004486/0.6181, allocations: 0.5622 MB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.6182, allocations: 38.5 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.6182, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 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.02011/0.6383, allocations: 4.37 MB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.6384, allocations: 51.41 kB / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.945e-05/0.6384, allocations: 93.86 kB / 1.025 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.509e-05/0.6385, allocations: 29.7 kB / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.438e-05/0.6385, allocations: 80.14 kB / 1.026 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.6386, allocations: 67.22 kB / 1.026 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/0.6389, allocations: 85.67 kB / 1.026 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.992e-05/0.639, allocations: 322.8 kB / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004955/0.6395, allocations: 311.9 kB / 1.026 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/0.64, allocations: 311.8 kB / 1.027 GB, free: 8.656 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/0.6415, allocations: 0.7761 MB / 1.027 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.6415, allocations: 0 / 1.027 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001506/0.643, allocations: 0.7904 MB / 1.028 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.643, allocations: 9.094 kB / 1.028 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.6431, allocations: 4 kB / 1.028 GB, free: 7.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.6431, allocations: 0 / 1.028 GB, free: 7.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008762/0.644, allocations: 99.88 kB / 1.028 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.644, allocations: 0 / 1.028 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005586/0.6445, allocations: 8 kB / 1.028 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.807e-05/0.6446, allocations: 35.98 kB / 1.028 GB, free: 6.93 MB / 0.7794 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.0001776/0.6448, allocations: 117.8 kB / 1.028 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.449e-05/0.6449, allocations: 7.891 kB / 1.028 GB, free: 6.797 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003225/0.6481, allocations: 1.403 MB / 1.03 GB, free: 5.391 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.6482, allocations: 4 kB / 1.03 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.6482, allocations: 0 / 1.03 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.6482, allocations: 0 / 1.03 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002882/0.6511, allocations: 1.814 MB / 1.032 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.6511, allocations: 3.984 kB / 1.032 GB, free: 3.508 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008248/0.6519, allocations: 107.9 kB / 1.032 GB, free: 3.402 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.058e-05/0.6519, allocations: 4 kB / 1.032 GB, free: 3.398 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.798e-05/0.652, allocations: 31.88 kB / 1.032 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.652, allocations: 8.031 kB / 1.032 GB, free: 3.359 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.652, allocations: 0 / 1.032 GB, free: 3.359 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.6544, allocations: 1.468 MB / 1.033 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.678e-05/0.6545, allocations: 88.95 kB / 1.033 GB, free: 1.766 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.593e-05/0.6546, allocations: 11.94 kB / 1.033 GB, free: 1.754 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005362/0.6551, allocations: 12 kB / 1.033 GB, free: 1.742 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.6553, allocations: 52.02 kB / 1.033 GB, free: 1.691 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.521e-05/0.6553, allocations: 28 kB / 1.033 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.117e-05/0.6554, allocations: 79.28 kB / 1.033 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6554, allocations: 0 / 1.033 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005759/0.656, allocations: 176 kB / 1.034 GB, free: 1.414 MB / 0.7794 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.002957/0.6589, allocations: 2.139 MB / 1.036 GB, free: 15.25 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00125/0.6602, allocations: 0.7418 MB / 1.036 GB, free: 14.5 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.6602, allocations: 0 / 1.036 GB, free: 14.5 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006139/0.6608, allocations: 451.7 kB / 1.037 GB, free: 14.06 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.6612, allocations: 16 kB / 1.037 GB, free: 14.05 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007484/0.6687, allocations: 3.731 MB / 1.04 GB, free: 10.24 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.6689, allocations: 0.7103 MB / 1.041 GB, free: 9.5 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001383/0.6703, allocations: 293.5 kB / 1.041 GB, free: 9.211 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005502/0.6709, allocations: 119.4 kB / 1.042 GB, free: 9.094 MB / 0.795 GB Notification: Performance of SimCode: time 8.41e-07/0.6709, allocations: 0 / 1.042 GB, free: 9.094 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0326/0.7035, allocations: 12.66 MB / 1.054 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.065/7.769, allocations: 16.61 kB / 1.054 GB, free: 12.6 MB / 0.8106 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)