Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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.007517/0.007517, allocations: 101 kB / 15.73 MB, free: 6.059 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.00194/0.00194, allocations: 191 kB / 16.67 MB, free: 5.969 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002486/0.002486, allocations: 288.6 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.247/1.247, allocations: 178.5 MB / 0.5074 GB, free: 12.68 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004123/0.004123, allocations: 103.8 kB / 0.6944 GB, free: 15.12 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4317/0.4359, allocations: 89.13 MB / 0.7814 GB, free: 1.125 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001803/0.4377, allocations: 0.6136 MB / 0.782 GB, free: 0.6719 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001835/0.4396, allocations: 1.285 MB / 0.7832 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.417e-05/0.4396, allocations: 0 / 0.7832 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.975e-05/0.4397, allocations: 0 / 0.7832 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 1.96e-05/0.4397, allocations: 1.406 kB / 0.7832 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004306/0.4402, allocations: 77.5 kB / 0.7833 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.566e-05/0.4402, allocations: 22.55 kB / 0.7833 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.335e-05/0.4403, allocations: 6.391 kB / 0.7834 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.085e-05/0.4403, allocations: 13.41 kB / 0.7834 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.871e-05/0.4404, allocations: 16.36 kB / 0.7834 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.352e-05/0.4404, allocations: 5.094 kB / 0.7834 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002454/0.4407, allocations: 96.58 kB / 0.7835 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.289e-05/0.4407, allocations: 13.59 kB / 0.7835 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.732e-05/0.4407, allocations: 11.47 kB / 0.7835 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.4409, allocations: 69.41 kB / 0.7836 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.4409, allocations: 0 / 0.7836 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.783e-06/0.4409, allocations: 1.406 kB / 0.7836 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.4409, allocations: 0 / 0.7836 GB, free: 15.44 MB / 0.5606 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.0005203/0.4414, allocations: 355.4 kB / 0.7839 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.4415, allocations: 12.84 kB / 0.7839 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.12e-05/0.4415, allocations: 31.94 kB / 0.7839 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.825e-05/0.4416, allocations: 3.438 kB / 0.784 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.4417, allocations: 165.9 kB / 0.7841 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.4417, allocations: 9.547 kB / 0.7841 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.095e-05/0.4418, allocations: 3.094 kB / 0.7841 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.4419, allocations: 58.27 kB / 0.7842 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.4419, allocations: 3.953 kB / 0.7842 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.4419, allocations: 1.281 kB / 0.7842 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.4419, allocations: 5.438 kB / 0.7842 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.668e-05/0.442, allocations: 20.77 kB / 0.7842 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000192/0.4422, allocations: 173.7 kB / 0.7844 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001361/0.4424, allocations: 64.08 kB / 0.7844 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.438e-05/0.4424, allocations: 23.89 kB / 0.7845 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005887/0.443, allocations: 0.5622 MB / 0.785 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.497e-05/0.4431, allocations: 36.19 kB / 0.785 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.4431, allocations: 0 / 0.785 GB, free: 13.76 MB / 0.5606 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.01974/0.4628, allocations: 4.374 MB / 0.7893 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.184e-05/0.4629, allocations: 54.16 kB / 0.7894 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.228e-05/0.463, allocations: 90.92 kB / 0.7895 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.431e-05/0.463, allocations: 26.55 kB / 0.7895 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.775e-05/0.4631, allocations: 85.23 kB / 0.7896 GB, free: 11 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.4632, allocations: 61.86 kB / 0.7896 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002496/0.4635, allocations: 91.78 kB / 0.7897 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.4636, allocations: 325.3 kB / 0.79 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005482/0.4642, allocations: 314.6 kB / 0.7903 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005381/0.4647, allocations: 314 kB / 0.7906 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001576/0.4663, allocations: 0.7711 MB / 0.7914 GB, free: 9.879 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.4663, allocations: 0 / 0.7914 GB, free: 9.879 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001605/0.4679, allocations: 0.8065 MB / 0.7922 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.4679, allocations: 6.031 kB / 0.7922 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.468, allocations: 0 / 0.7922 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.468, allocations: 1.094 kB / 0.7922 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008223/0.4688, allocations: 96.69 kB / 0.7923 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.4688, allocations: 4 kB / 0.7923 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005517/0.4694, allocations: 9.875 kB / 0.7923 GB, free: 9.445 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.832e-05/0.4695, allocations: 31.73 kB / 0.7923 GB, free: 9.441 MB / 0.5606 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.0001898/0.4697, allocations: 117.2 kB / 0.7924 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.374e-05/0.4698, allocations: 11.36 kB / 0.7924 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003167/0.4729, allocations: 1.4 MB / 0.7938 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.4729, allocations: 5.875 kB / 0.7938 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.473, allocations: 0 / 0.7938 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.473, allocations: 0 / 0.7938 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00308/0.4761, allocations: 1.818 MB / 0.7956 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.4761, allocations: 3.984 kB / 0.7956 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007853/0.4769, allocations: 113 kB / 0.7957 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.4769, allocations: 2.625 kB / 0.7957 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.775e-05/0.477, allocations: 33.62 kB / 0.7957 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.477, allocations: 1.406 kB / 0.7957 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.644e-06/0.477, allocations: 1.188 kB / 0.7957 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002539/0.4796, allocations: 1.459 MB / 0.7971 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.397e-05/0.4796, allocations: 93.11 kB / 0.7972 GB, free: 6.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.877e-05/0.4797, allocations: 18.81 kB / 0.7972 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005189/0.4802, allocations: 10.91 kB / 0.7973 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.4804, allocations: 36.97 kB / 0.7973 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.869e-05/0.4805, allocations: 35.89 kB / 0.7973 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.715e-05/0.4805, allocations: 75.28 kB / 0.7974 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2e-07/0.4805, allocations: 0 / 0.7974 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005842/0.4811, allocations: 179 kB / 0.7976 GB, free: 6.121 MB / 0.5606 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.003402/0.4845, allocations: 2.148 MB / 0.7997 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001339/0.4859, allocations: 0.7187 MB / 0.8004 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4859, allocations: 0 / 0.8004 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0007052/0.4866, allocations: 458.7 kB / 0.8008 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.4869, allocations: 21.17 kB / 0.8008 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008269/0.4952, allocations: 3.714 MB / 0.8045 GB, free: 400 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.4956, allocations: 0.7181 MB / 0.8052 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001021/0.4967, allocations: 301.6 kB / 0.8054 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005814/0.4973, allocations: 115.4 kB / 0.8056 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of SimCode: time 5.71e-07/0.4973, allocations: 0 / 0.8056 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03643/0.5337, allocations: 12.73 MB / 0.818 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.038/8.572, allocations: 8.25 kB / 0.818 GB, free: 2.711 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)