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.0007728/0.0007728, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008345/0.0008345, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001682/0.001682, allocations: 274.5 kB / 291.4 MB, free: 1.973 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9059/0.9059, allocations: 169.5 MB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004655/0.0004655, allocations: 20.16 kB / 0.598 GB, free: 28.42 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1868, allocations: 88.54 MB / 0.6845 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0008239/0.1877, allocations: 339.8 kB / 0.6848 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.1893, allocations: 1.236 MB / 0.686 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.341e-05/0.1893, allocations: 4 kB / 0.686 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.385e-05/0.1893, allocations: 3.938 kB / 0.686 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.651e-05/0.1894, allocations: 0.5312 kB / 0.686 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003494/0.1897, allocations: 50.2 kB / 0.6861 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.096e-05/0.1898, allocations: 15.98 kB / 0.6861 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.979e-05/0.1899, allocations: 5.938 kB / 0.6861 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.881e-05/0.1899, allocations: 15.92 kB / 0.6861 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.06e-05/0.19, allocations: 23.84 kB / 0.6861 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.19, allocations: 4 kB / 0.6861 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002282/0.1903, allocations: 91.89 kB / 0.6862 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.641e-05/0.1903, allocations: 8.797 kB / 0.6862 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.804e-05/0.1903, allocations: 29.7 kB / 0.6863 GB, free: 13.6 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.1905, allocations: 45.41 kB / 0.6863 GB, free: 13.56 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1905, allocations: 0 / 0.6863 GB, free: 13.56 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.1905, allocations: 0 / 0.6863 GB, free: 13.56 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1905, allocations: 0 / 0.6863 GB, free: 13.56 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.0005326/0.191, allocations: 344.8 kB / 0.6866 GB, free: 13.18 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.1911, allocations: 12.72 kB / 0.6867 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.574e-05/0.1912, allocations: 7.906 kB / 0.6867 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.1913, allocations: 170.1 kB / 0.6868 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.1913, allocations: 4 kB / 0.6868 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.1914, allocations: 0 / 0.6868 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001503/0.1915, allocations: 49.69 kB / 0.6869 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.1915, allocations: 0 / 0.6869 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.1916, allocations: 3.984 kB / 0.6869 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1916, allocations: 4 kB / 0.6869 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.354e-05/0.1917, allocations: 25.45 kB / 0.6869 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001868/0.1919, allocations: 165.6 kB / 0.6871 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001292/0.192, allocations: 55.22 kB / 0.6871 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.473e-05/0.1921, allocations: 30.56 kB / 0.6871 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005307/0.1926, allocations: 0.5592 MB / 0.6877 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.1926, allocations: 39.5 kB / 0.6877 GB, free: 11.82 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.1926, allocations: 1.5 kB / 0.6877 GB, free: 11.82 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.01641/0.209, allocations: 4.281 MB / 0.6919 GB, free: 7.398 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.2091, allocations: 59.34 kB / 0.692 GB, free: 7.328 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.929e-05/0.2092, allocations: 93.86 kB / 0.6921 GB, free: 7.227 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.834e-05/0.2093, allocations: 29.7 kB / 0.6921 GB, free: 7.191 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.635e-05/0.2093, allocations: 84.14 kB / 0.6922 GB, free: 7.105 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.2094, allocations: 55.19 kB / 0.6922 GB, free: 7.051 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.947e-05/0.2095, allocations: 3.938 kB / 0.6922 GB, free: 7.047 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.522e-05/0.2096, allocations: 322.8 kB / 0.6925 GB, free: 6.723 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004821/0.2101, allocations: 307.8 kB / 0.6928 GB, free: 6.422 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004797/0.2106, allocations: 314.1 kB / 0.6931 GB, free: 6.117 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007233/0.2113, allocations: 399.9 kB / 0.6935 GB, free: 5.727 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.2113, allocations: 0 / 0.6935 GB, free: 5.727 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001442/0.2127, allocations: 0.7885 MB / 0.6943 GB, free: 4.934 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.2128, allocations: 8 kB / 0.6943 GB, free: 4.926 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2128, allocations: 0 / 0.6943 GB, free: 4.926 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.2128, allocations: 3.984 kB / 0.6943 GB, free: 4.922 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006763/0.2135, allocations: 103.8 kB / 0.6944 GB, free: 4.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.2135, allocations: 0 / 0.6944 GB, free: 4.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003623/0.2139, allocations: 8 kB / 0.6944 GB, free: 4.812 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.936e-05/0.214, allocations: 39.97 kB / 0.6944 GB, free: 4.773 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001644/0.2141, allocations: 118.5 kB / 0.6945 GB, free: 4.648 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.124e-05/0.2142, allocations: 7.906 kB / 0.6945 GB, free: 4.641 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003268/0.2175, allocations: 1.404 MB / 0.6959 GB, free: 3.227 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.2175, allocations: 4 kB / 0.6959 GB, free: 3.223 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2175, allocations: 3.953 kB / 0.6959 GB, free: 3.219 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.2175, allocations: 3.984 kB / 0.6959 GB, free: 3.215 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002708/0.2202, allocations: 1.809 MB / 0.6977 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.2203, allocations: 4 kB / 0.6977 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006751/0.2209, allocations: 107.9 kB / 0.6978 GB, free: 1.242 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.221, allocations: 0 / 0.6978 GB, free: 1.242 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.734e-05/0.221, allocations: 28 kB / 0.6978 GB, free: 1.215 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.221, allocations: 0 / 0.6978 GB, free: 1.215 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.221, allocations: 0 / 0.6978 GB, free: 1.215 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.2232, allocations: 1.477 MB / 0.6993 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.395e-05/0.2233, allocations: 96.81 kB / 0.6994 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.355e-05/0.2234, allocations: 8 kB / 0.6994 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003915/0.2238, allocations: 11.98 kB / 0.6994 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.2239, allocations: 43.97 kB / 0.6994 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.406e-05/0.224, allocations: 28 kB / 0.6995 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.034e-05/0.224, allocations: 79.34 kB / 0.6995 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.224, allocations: 4 kB / 0.6995 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005444/0.2246, allocations: 176 kB / 0.6997 GB, free: 15.26 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004709/0.225, allocations: 224.8 kB / 0.6999 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001173/0.2262, allocations: 0.7223 MB / 0.7006 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2262, allocations: 0 / 0.7006 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006148/0.2269, allocations: 451.7 kB / 0.7011 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.2272, allocations: 20.16 kB / 0.7011 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/0.2299, allocations: 0.8434 MB / 0.7019 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.2302, allocations: 0.7223 MB / 0.7026 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001392/0.2316, allocations: 293.5 kB / 0.7029 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005045/0.2321, allocations: 91.41 kB / 0.703 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of SimCode: time 9.72e-07/0.2322, allocations: 0 / 0.703 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of Templates: time 0.01557/0.2477, allocations: 10.42 MB / 0.7131 GB, free: 1.527 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)