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.004809/0.004809, allocations: 101.3 kB / 15.73 MB, free: 6.035 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.001838/0.001839, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.479/1.479, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002451/0.002451, allocations: 278.8 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9918/0.9918, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002993/0.002993, allocations: 98.69 kB / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1779, allocations: 86.98 MB / 0.766 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001818/0.1797, allocations: 0.6111 MB / 0.7666 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00182/0.1816, allocations: 1.283 MB / 0.7678 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.138e-05/0.1816, allocations: 0 / 0.7678 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.45e-05/0.1817, allocations: 0 / 0.7678 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.787e-05/0.1817, allocations: 4 kB / 0.7678 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.1822, allocations: 75.7 kB / 0.7679 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.321e-05/0.1822, allocations: 31.86 kB / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.61e-05/0.1823, allocations: 0 / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.294e-05/0.1823, allocations: 8 kB / 0.7679 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.232e-05/0.1824, allocations: 23.89 kB / 0.768 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.1824, allocations: 4 kB / 0.768 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002362/0.1826, allocations: 91.91 kB / 0.768 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.765e-05/0.1827, allocations: 11.98 kB / 0.7681 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.017e-05/0.1827, allocations: 15.92 kB / 0.7681 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.1829, allocations: 68.02 kB / 0.7681 GB, free: 6.633 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.1829, allocations: 0 / 0.7681 GB, free: 6.633 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.262e-06/0.1829, allocations: 0 / 0.7681 GB, free: 6.633 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.047e-06/0.1829, allocations: 0 / 0.7681 GB, free: 6.633 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.0004996/0.1834, allocations: 347.3 kB / 0.7685 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.1835, allocations: 12.03 kB / 0.7685 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.932e-05/0.1835, allocations: 42.69 kB / 0.7685 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.837e-05/0.1836, allocations: 0.9375 kB / 0.7685 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.1837, allocations: 172.2 kB / 0.7687 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/0.1837, allocations: 4.375 kB / 0.7687 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.1838, allocations: 8.375 kB / 0.7687 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.1839, allocations: 53.73 kB / 0.7687 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.1839, allocations: 4 kB / 0.7688 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.1839, allocations: 4 kB / 0.7688 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1839, allocations: 4 kB / 0.7688 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7e-05/0.184, allocations: 23.97 kB / 0.7688 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002235/0.1842, allocations: 165.6 kB / 0.7689 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.1844, allocations: 62.5 kB / 0.769 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.697e-05/0.1844, allocations: 24.84 kB / 0.769 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006015/0.185, allocations: 0.5622 MB / 0.7696 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.1851, allocations: 38.48 kB / 0.7696 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.263e-06/0.1851, 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.02072/0.2058, allocations: 4.37 MB / 0.7739 GB, free: 316 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.2059, allocations: 51.41 kB / 0.7739 GB, free: 252 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.2061, allocations: 101.8 kB / 0.774 GB, free: 140 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001041/0.2062, allocations: 25.7 kB / 0.774 GB, free: 108 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.22e-05/0.2063, allocations: 80.14 kB / 0.7741 GB, free: 24 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.3412/0.5475, allocations: 53.39 kB / 0.7742 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003055/0.5479, allocations: 94.53 kB / 0.7743 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.914e-05/0.5479, allocations: 322.4 kB / 0.7746 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006254/0.5486, allocations: 310.1 kB / 0.7749 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005433/0.5491, allocations: 313.1 kB / 0.7752 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001543/0.5507, allocations: 0.7731 MB / 0.7759 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.5507, allocations: 0.625 kB / 0.7759 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001582/0.5523, allocations: 0.8035 MB / 0.7767 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.5523, allocations: 5.688 kB / 0.7767 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.5523, allocations: 0 / 0.7767 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.5523, allocations: 3.484 kB / 0.7767 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008207/0.5532, allocations: 93.11 kB / 0.7768 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.5532, allocations: 6.719 kB / 0.7768 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005169/0.5537, allocations: 8.5 kB / 0.7768 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-05/0.5538, allocations: 37.52 kB / 0.7769 GB, free: 14.37 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.0001544/0.554, allocations: 119.8 kB / 0.777 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.05e-05/0.5541, allocations: 7.734 kB / 0.777 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003098/0.5572, allocations: 1.399 MB / 0.7783 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.5572, allocations: 6.062 kB / 0.7783 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.5572, allocations: 3.938 kB / 0.7784 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.5572, allocations: 2.672 kB / 0.7784 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002854/0.5601, allocations: 1.808 MB / 0.7801 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.5601, allocations: 1.594 kB / 0.7801 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007808/0.5609, allocations: 113.8 kB / 0.7802 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.717e-06/0.5609, allocations: 5.375 kB / 0.7802 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.62e-05/0.561, allocations: 30.27 kB / 0.7803 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.561, allocations: 4.344 kB / 0.7803 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.561, allocations: 1.344 kB / 0.7803 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.5634, allocations: 1.472 MB / 0.7817 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.714e-05/0.5634, allocations: 93.91 kB / 0.7818 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.806e-05/0.5635, allocations: 12.14 kB / 0.7818 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000507/0.564, allocations: 15.06 kB / 0.7818 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.5642, allocations: 38.22 kB / 0.7819 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-05/0.5643, allocations: 33.41 kB / 0.7819 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.459e-05/0.5644, allocations: 83.66 kB / 0.782 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5644, allocations: 0 / 0.782 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0007258/0.5651, allocations: 181.6 kB / 0.7821 GB, free: 11.68 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.00316/0.5683, allocations: 2.136 MB / 0.7842 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001172/0.5695, allocations: 0.7234 MB / 0.7849 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.5695, allocations: 0 / 0.7849 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005681/0.57, allocations: 454.1 kB / 0.7854 GB, free: 9.879 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.5704, allocations: 14.3 kB / 0.7854 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006681/0.5771, allocations: 3.717 MB / 0.789 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001193/0.5772, allocations: 0.7145 MB / 0.7897 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009557/0.5782, allocations: 298.6 kB / 0.79 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005517/0.5787, allocations: 120.1 kB / 0.7901 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of SimCode: time 7.11e-07/0.5787, allocations: 0 / 0.7901 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04744/0.6262, allocations: 12.75 MB / 0.8026 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/8.497, allocations: 11.11 kB / 0.8026 GB, free: 5.008 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)