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.001006/0.001006, allocations: 107.7 kB / 16.41 MB, free: 6.492 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.0009614/0.0009615, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.289/1.289, allocations: 222.9 MB / 241 MB, free: 14.96 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002008/0.002007, allocations: 286.5 kB / 291.5 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9251/0.9251, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 99.86 kB / 0.6822 GB, free: 6.895 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4099/0.4116, allocations: 86.97 MB / 0.7671 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001503/0.4131, allocations: 0.6088 MB / 0.7677 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.4146, allocations: 1.287 MB / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.647e-05/0.4146, allocations: 0 / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.457e-05/0.4146, allocations: 3.938 kB / 0.7689 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.691e-05/0.4147, allocations: 3.938 kB / 0.769 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003614/0.415, allocations: 75.72 kB / 0.769 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.581e-05/0.4151, allocations: 23.98 kB / 0.769 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.418e-05/0.4152, allocations: 4 kB / 0.769 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.269e-05/0.4152, allocations: 11.92 kB / 0.7691 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.846e-05/0.4153, allocations: 19.91 kB / 0.7691 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.4153, allocations: 4 kB / 0.7691 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002131/0.4155, allocations: 99.89 kB / 0.7692 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.461e-05/0.4155, allocations: 7.984 kB / 0.7692 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.339e-05/0.4156, allocations: 11.94 kB / 0.7692 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.4157, allocations: 63.86 kB / 0.7693 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.4157, allocations: 3.984 kB / 0.7693 GB, free: 1.699 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.192e-06/0.4157, allocations: 4 kB / 0.7693 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.4157, allocations: 0 / 0.7693 GB, free: 1.695 MB / 0.5294 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.0004207/0.4161, allocations: 349.5 kB / 0.7696 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.4162, allocations: 8.031 kB / 0.7696 GB, free: 1.305 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.671e-05/0.4162, allocations: 4.938 kB / 0.7696 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.4163, allocations: 176.3 kB / 0.7698 GB, free: 1.09 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-06/0.4164, allocations: 4.375 kB / 0.7698 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.392e-05/0.4164, allocations: 384 / 0.7698 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.4165, allocations: 61.98 kB / 0.7698 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.4165, allocations: 0 / 0.7698 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.4165, allocations: 7.984 kB / 0.7699 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.4165, allocations: 0 / 0.7699 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.077e-05/0.4166, allocations: 19.98 kB / 0.7699 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001619/0.4168, allocations: 173.6 kB / 0.77 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.4169, allocations: 62.5 kB / 0.7701 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.033e-05/0.4169, allocations: 32.84 kB / 0.7701 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004485/0.4174, allocations: 0.5505 MB / 0.7707 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.4174, allocations: 42.48 kB / 0.7707 GB, free: 15.94 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 2.294e-06/0.4174, allocations: 0 / 0.7707 GB, free: 15.94 MB / 0.545 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.01791/0.4353, allocations: 4.366 MB / 0.775 GB, free: 11.43 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.4354, allocations: 55.34 kB / 0.775 GB, free: 11.36 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.975e-05/0.4355, allocations: 97.84 kB / 0.7751 GB, free: 11.25 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.899e-05/0.4356, allocations: 29.7 kB / 0.7751 GB, free: 11.22 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.879e-05/0.4356, allocations: 81.94 kB / 0.7752 GB, free: 11.14 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.4357, allocations: 67.22 kB / 0.7753 GB, free: 11.07 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/0.4359, allocations: 85.67 kB / 0.7754 GB, free: 10.98 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.4361, allocations: 326.8 kB / 0.7757 GB, free: 10.65 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004774/0.4365, allocations: 307.8 kB / 0.776 GB, free: 10.35 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004703/0.437, allocations: 311.9 kB / 0.7763 GB, free: 10.05 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.4384, allocations: 0.7702 MB / 0.777 GB, free: 9.273 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.4384, allocations: 0 / 0.777 GB, free: 9.273 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001423/0.4398, allocations: 0.8008 MB / 0.7778 GB, free: 8.469 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.4399, allocations: 4 kB / 0.7778 GB, free: 8.465 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.4399, allocations: 4 kB / 0.7778 GB, free: 8.461 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.4399, allocations: 3.984 kB / 0.7778 GB, free: 8.457 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007437/0.4406, allocations: 91.89 kB / 0.7779 GB, free: 8.367 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.4407, allocations: 4.547 kB / 0.7779 GB, free: 8.363 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004763/0.4411, allocations: 11.94 kB / 0.7779 GB, free: 8.352 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.414e-05/0.4412, allocations: 35.97 kB / 0.778 GB, free: 8.316 MB / 0.545 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.0001674/0.4414, allocations: 121.8 kB / 0.7781 GB, free: 8.188 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.241e-05/0.4415, allocations: 4 kB / 0.7781 GB, free: 8.184 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002769/0.4443, allocations: 1.396 MB / 0.7794 GB, free: 6.781 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.4443, allocations: 4 kB / 0.7794 GB, free: 6.777 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4443, allocations: 4 kB / 0.7794 GB, free: 6.773 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.4443, allocations: 3.984 kB / 0.7794 GB, free: 6.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002703/0.447, allocations: 1.812 MB / 0.7812 GB, free: 4.895 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.447, allocations: 0 / 0.7812 GB, free: 4.895 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007303/0.4478, allocations: 107.9 kB / 0.7813 GB, free: 4.789 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.4478, allocations: 4 kB / 0.7813 GB, free: 4.785 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.004e-05/0.4479, allocations: 31.92 kB / 0.7814 GB, free: 4.754 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.4479, allocations: 7.984 kB / 0.7814 GB, free: 4.746 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4479, allocations: 0 / 0.7814 GB, free: 4.746 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002211/0.4501, allocations: 1.474 MB / 0.7828 GB, free: 3.25 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.637e-05/0.4501, allocations: 92.97 kB / 0.7829 GB, free: 3.141 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.426e-05/0.4502, allocations: 11.94 kB / 0.7829 GB, free: 3.129 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000494/0.4507, allocations: 12 kB / 0.7829 GB, free: 3.117 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.4509, allocations: 43.97 kB / 0.783 GB, free: 3.074 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.577e-05/0.4509, allocations: 27.94 kB / 0.783 GB, free: 3.047 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.195e-05/0.451, allocations: 83.28 kB / 0.7831 GB, free: 2.965 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/0.451, allocations: 160 / 0.7831 GB, free: 2.965 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0005391/0.4515, allocations: 184 kB / 0.7832 GB, free: 2.785 MB / 0.545 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.0005022/0.452, allocations: 219.1 kB / 0.7834 GB, free: 2.562 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001151/0.4532, allocations: 0.7261 MB / 0.7842 GB, free: 1.836 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.4532, allocations: 0 / 0.7842 GB, free: 1.836 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0005992/0.4538, allocations: 451.7 kB / 0.7846 GB, free: 1.395 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.4541, allocations: 16 kB / 0.7846 GB, free: 1.379 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003174/0.4573, allocations: 0.8307 MB / 0.7854 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.4576, allocations: 0.7181 MB / 0.7861 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005102/0.4581, allocations: 95.41 kB / 0.7862 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of SimCode: time 4.81e-07/0.4581, allocations: 0 / 0.7862 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of Templates: time 0.009885/0.468, allocations: 6.891 MB / 0.7929 GB, free: 8.879 MB / 0.5606 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)