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.006099/0.006099, allocations: 95.44 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.00131/0.00131, allocations: 199.3 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002375/0.002375, allocations: 279.2 kB / 290.8 MB, free: 1.777 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9776/0.9776, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 99.94 kB / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1679, allocations: 86.98 MB / 0.766 GB, free: 8.863 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001811/0.1698, allocations: 0.6033 MB / 0.7665 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001647/0.1715, allocations: 1.283 MB / 0.7678 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.666e-05/0.1715, allocations: 0 / 0.7678 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.1715, allocations: 0 / 0.7678 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.462e-05/0.1716, allocations: 3.938 kB / 0.7678 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.172, allocations: 79.72 kB / 0.7679 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.423e-05/0.1721, allocations: 27.92 kB / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.683e-05/0.1721, allocations: 0 / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.432e-05/0.1721, allocations: 12 kB / 0.7679 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.545e-05/0.1722, allocations: 19.91 kB / 0.7679 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.03e-05/0.1722, allocations: 0 / 0.7679 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002162/0.1724, allocations: 95.89 kB / 0.768 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.466e-05/0.1725, allocations: 7.984 kB / 0.768 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.795e-05/0.1725, allocations: 15.92 kB / 0.7681 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001405/0.1726, allocations: 64.02 kB / 0.7681 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1727, allocations: 8 kB / 0.7681 GB, free: 6.633 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.262e-06/0.1727, allocations: 4 kB / 0.7681 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.1727, allocations: 0 / 0.7681 GB, free: 6.629 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.000453/0.1731, allocations: 351.3 kB / 0.7685 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.1732, allocations: 8.031 kB / 0.7685 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.767e-05/0.1732, allocations: 38.69 kB / 0.7685 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.286e-05/0.1733, allocations: 4.938 kB / 0.7685 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.1734, allocations: 168.3 kB / 0.7687 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.1734, allocations: 4.375 kB / 0.7687 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.646e-05/0.1734, allocations: 4.375 kB / 0.7687 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001287/0.1736, allocations: 57.75 kB / 0.7687 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.1736, allocations: 0 / 0.7687 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.1736, allocations: 4 kB / 0.7687 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1736, allocations: 0 / 0.7687 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.664e-05/0.1737, allocations: 31.91 kB / 0.7688 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001815/0.1739, allocations: 165.6 kB / 0.7689 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001208/0.174, allocations: 58.56 kB / 0.769 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.498e-05/0.1741, allocations: 32.84 kB / 0.769 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004811/0.1746, allocations: 0.5544 MB / 0.7696 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.1746, allocations: 42.5 kB / 0.7696 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.1746, allocations: 0 / 0.7696 GB, free: 4.824 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.01982/0.1944, allocations: 4.377 MB / 0.7739 GB, free: 308 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.1945, allocations: 51.41 kB / 0.7739 GB, free: 244 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.745e-05/0.1946, allocations: 97.8 kB / 0.774 GB, free: 136 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.268e-05/0.1947, allocations: 29.7 kB / 0.774 GB, free: 100 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.077e-05/0.1947, allocations: 88.25 kB / 0.7741 GB, free: 8 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.2999/0.4946, allocations: 56.52 kB / 0.7742 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002945/0.495, allocations: 90.98 kB / 0.7743 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.925e-05/0.495, allocations: 322.6 kB / 0.7746 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005794/0.4956, allocations: 306.4 kB / 0.7749 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005338/0.4961, allocations: 309.8 kB / 0.7752 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/0.4976, allocations: 0.7707 MB / 0.7759 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4976, allocations: 0 / 0.7759 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001545/0.4992, allocations: 0.803 MB / 0.7767 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.4992, allocations: 5.812 kB / 0.7767 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.4992, allocations: 2.266 kB / 0.7767 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.4993, allocations: 2.578 kB / 0.7767 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008661/0.5001, allocations: 94.16 kB / 0.7768 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.5001, allocations: 4.312 kB / 0.7768 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005283/0.5007, allocations: 10 kB / 0.7768 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.539e-05/0.5008, allocations: 36.75 kB / 0.7768 GB, free: 14.33 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.0001716/0.501, allocations: 121.2 kB / 0.777 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.624e-05/0.501, allocations: 7.5 kB / 0.777 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00308/0.5041, allocations: 1.403 MB / 0.7783 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-06/0.5042, allocations: 4.266 kB / 0.7783 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.5042, allocations: 8.25 kB / 0.7783 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.5042, allocations: 2.062 kB / 0.7783 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002854/0.507, allocations: 1.807 MB / 0.7801 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.5071, allocations: 0.9375 kB / 0.7801 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008044/0.5079, allocations: 111.6 kB / 0.7802 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.5079, allocations: 5.125 kB / 0.7802 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.96e-05/0.508, allocations: 26.89 kB / 0.7803 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.658e-06/0.508, allocations: 4.125 kB / 0.7803 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.508, allocations: 1.938 kB / 0.7803 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002238/0.5102, allocations: 1.475 MB / 0.7817 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.937e-05/0.5103, allocations: 90.42 kB / 0.7818 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.255e-05/0.5104, allocations: 11.16 kB / 0.7818 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005293/0.5109, allocations: 9.125 kB / 0.7818 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.511, allocations: 43.86 kB / 0.7818 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.659e-05/0.5111, allocations: 29.28 kB / 0.7819 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.157e-05/0.5111, allocations: 88.06 kB / 0.782 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5111, allocations: 0 / 0.782 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000572/0.5117, allocations: 181.3 kB / 0.7821 GB, free: 11.65 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.002517/0.5142, allocations: 2.131 MB / 0.7842 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001087/0.5153, allocations: 0.7229 MB / 0.7849 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.5153, allocations: 0 / 0.7849 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005518/0.5159, allocations: 460.3 kB / 0.7854 GB, free: 9.848 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.5162, allocations: 17.91 kB / 0.7854 GB, free: 9.836 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00711/0.5233, allocations: 3.716 MB / 0.789 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000149/0.5235, allocations: 0.718 MB / 0.7897 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000947/0.5245, allocations: 293.6 kB / 0.79 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005644/0.525, allocations: 125.6 kB / 0.7901 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of SimCode: time 1.413e-06/0.525, allocations: 0 / 0.7901 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03671/0.5618, allocations: 12.74 MB / 0.8025 GB, free: 5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.594/8.156, allocations: 12.64 kB / 0.8026 GB, free: 4.996 MB / 0.5606 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)