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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001357/0.001357, allocations: 192.6 kB / 16.25 MB, free: 6.625 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.273/1.273, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001967/0.001967, allocations: 278.8 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.908/0.908, allocations: 169.2 MB / 0.4978 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 91.72 kB / 0.5947 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.164, allocations: 86.99 MB / 0.6796 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001932/0.166, allocations: 0.6705 MB / 0.6803 GB, free: 400 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.1675, allocations: 1.276 MB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.817e-05/0.1675, allocations: 1.094 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.343e-05/0.1676, allocations: 0 / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.153e-05/0.1676, allocations: 0 / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.168, allocations: 69.97 kB / 0.6816 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.946e-05/0.168, allocations: 19.98 kB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.549e-05/0.1681, allocations: 7.984 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.079e-05/0.1681, allocations: 8 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.604e-05/0.1682, allocations: 16.48 kB / 0.6817 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.1682, allocations: 7.938 kB / 0.6817 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002045/0.1684, allocations: 96.61 kB / 0.6818 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.445e-05/0.1684, allocations: 12.84 kB / 0.6818 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.265e-05/0.1684, allocations: 7.938 kB / 0.6818 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.1686, allocations: 72.47 kB / 0.6818 GB, free: 14.79 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1686, allocations: 0 / 0.6818 GB, free: 14.79 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1686, allocations: 1.844 kB / 0.6819 GB, free: 14.79 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1686, allocations: 0 / 0.6819 GB, free: 14.79 MB / 494.1 MB 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.0004117/0.169, allocations: 347.8 kB / 0.6822 GB, free: 14.4 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.1691, allocations: 15.97 kB / 0.6822 GB, free: 14.39 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.526e-05/0.1691, allocations: 8.844 kB / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.1692, allocations: 164.3 kB / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.1693, allocations: 4.375 kB / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.1693, allocations: 4.375 kB / 0.6824 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.1694, allocations: 57.98 kB / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.1694, allocations: 0 / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.1695, allocations: 4 kB / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1695, allocations: 0 / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.903e-05/0.1695, allocations: 19.98 kB / 0.6824 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001688/0.1697, allocations: 169.7 kB / 0.6826 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.1698, allocations: 70.47 kB / 0.6827 GB, free: 13.79 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.981e-05/0.1699, allocations: 20.86 kB / 0.6827 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004745/0.1704, allocations: 0.5583 MB / 0.6832 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.1704, allocations: 42.5 kB / 0.6833 GB, free: 13.03 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.1704, allocations: 0 / 0.6833 GB, free: 13.03 MB / 494.1 MB 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.02039/0.1908, allocations: 4.379 MB / 0.6876 GB, free: 8.508 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.1909, allocations: 59.34 kB / 0.6876 GB, free: 8.438 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.407e-05/0.191, allocations: 89.86 kB / 0.6877 GB, free: 8.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 8.167e-05/0.1911, allocations: 29.7 kB / 0.6877 GB, free: 8.305 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.036e-05/0.1911, allocations: 84.14 kB / 0.6878 GB, free: 8.219 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.1912, allocations: 47.27 kB / 0.6879 GB, free: 8.172 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002525/0.1915, allocations: 93.66 kB / 0.6879 GB, free: 8.074 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.628e-05/0.1916, allocations: 322.8 kB / 0.6883 GB, free: 7.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000506/0.1921, allocations: 311.9 kB / 0.6886 GB, free: 7.445 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005161/0.1926, allocations: 319.7 kB / 0.6889 GB, free: 7.133 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.1941, allocations: 0.7683 MB / 0.6896 GB, free: 6.363 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.1941, allocations: 4 kB / 0.6896 GB, free: 6.359 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00153/0.1956, allocations: 0.7943 MB / 0.6904 GB, free: 5.559 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.1957, allocations: 8 kB / 0.6904 GB, free: 5.551 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.1957, allocations: 0 / 0.6904 GB, free: 5.551 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.1957, allocations: 0 / 0.6904 GB, free: 5.551 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007975/0.1965, allocations: 91.89 kB / 0.6905 GB, free: 5.461 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.1965, allocations: 0 / 0.6905 GB, free: 5.461 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005106/0.197, allocations: 19.98 kB / 0.6905 GB, free: 5.441 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.568e-05/0.1971, allocations: 31.98 kB / 0.6905 GB, free: 5.41 MB / 494.1 MB 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.0001952/0.1973, allocations: 115.1 kB / 0.6906 GB, free: 5.289 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.635e-05/0.1974, allocations: 11.91 kB / 0.6907 GB, free: 5.277 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003273/0.2007, allocations: 1.404 MB / 0.692 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.2007, allocations: 4 kB / 0.692 GB, free: 3.863 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.2007, allocations: 11.98 kB / 0.692 GB, free: 3.852 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2007, allocations: 0 / 0.692 GB, free: 3.852 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002768/0.2035, allocations: 1.817 MB / 0.6938 GB, free: 1.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.2035, allocations: 0 / 0.6938 GB, free: 1.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007814/0.2043, allocations: 103.9 kB / 0.6939 GB, free: 1.879 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.2043, allocations: 4 kB / 0.6939 GB, free: 1.875 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.122e-05/0.2044, allocations: 35.92 kB / 0.6939 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.2044, allocations: 0 / 0.6939 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2044, allocations: 4 kB / 0.694 GB, free: 1.836 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002304/0.2067, allocations: 1.469 MB / 0.6954 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.77e-05/0.2068, allocations: 92.89 kB / 0.6955 GB, free: 244 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.728e-05/0.2069, allocations: 11.94 kB / 0.6955 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004943/0.2074, allocations: 12 kB / 0.6955 GB, free: 220 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.2076, allocations: 39.97 kB / 0.6955 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.36e-05/0.2076, allocations: 31.98 kB / 0.6956 GB, free: 148 kB / 494.1 MB Notification: Performance of sorting global known variables: time 3.693e-05/0.2077, allocations: 79.28 kB / 0.6956 GB, free: 68 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2077, allocations: 4.156 kB / 0.6956 GB, free: 64 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005813/0.2083, allocations: 172.1 kB / 0.6958 GB, free: 15.89 MB / 0.4981 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.000535/0.2088, allocations: 235 kB / 0.696 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001261/0.2101, allocations: 0.7437 MB / 0.6968 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2101, allocations: 0 / 0.6968 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006348/0.2107, allocations: 451.8 kB / 0.6972 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003155/0.2111, allocations: 15.94 kB / 0.6972 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003122/0.2142, allocations: 0.8559 MB / 0.698 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.2145, allocations: 0.722 MB / 0.6987 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001518/0.216, allocations: 293.5 kB / 0.699 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005668/0.2166, allocations: 99.41 kB / 0.6991 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of SimCode: time 1.723e-06/0.2166, allocations: 0 / 0.6991 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of Templates: time 0.01663/0.2332, allocations: 11.23 MB / 0.7101 GB, free: 1.293 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)