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.004248/0.004248, allocations: 103 kB / 15.73 MB, free: 5.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.001007/0.001007, allocations: 190.2 kB / 16.67 MB, free: 5.422 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.298/1.298, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 295.7 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9399/0.9399, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 99.86 kB / 0.6815 GB, free: 6.898 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.415/0.4167, allocations: 86.97 MB / 0.7664 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00148/0.4182, allocations: 0.6171 MB / 0.767 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001474/0.4197, allocations: 1.283 MB / 0.7683 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.171e-05/0.4197, allocations: 0 / 0.7683 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.402e-05/0.4197, allocations: 3.938 kB / 0.7683 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.472e-05/0.4198, allocations: 0 / 0.7683 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003707/0.4202, allocations: 79.73 kB / 0.7684 GB, free: 1.895 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.441e-05/0.4202, allocations: 19.98 kB / 0.7684 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.956e-05/0.4203, allocations: 3.984 kB / 0.7684 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.546e-05/0.4203, allocations: 11.92 kB / 0.7684 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.004e-05/0.4204, allocations: 19.92 kB / 0.7684 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.4204, allocations: 0 / 0.7684 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002187/0.4206, allocations: 107.8 kB / 0.7685 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.678e-05/0.4206, allocations: 7.984 kB / 0.7685 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.789e-05/0.4207, allocations: 7.938 kB / 0.7685 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.4208, allocations: 75.83 kB / 0.7686 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.4208, allocations: 0 / 0.7686 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.794e-06/0.4208, allocations: 0 / 0.7686 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.287e-06/0.4209, allocations: 4 kB / 0.7686 GB, free: 1.641 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.0004549/0.4213, allocations: 355.1 kB / 0.769 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.4214, allocations: 8.031 kB / 0.769 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.42e-05/0.4214, allocations: 0.9375 kB / 0.769 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.4215, allocations: 164.4 kB / 0.7691 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.4215, allocations: 4.375 kB / 0.7691 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.4216, allocations: 8.375 kB / 0.7691 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001247/0.4217, allocations: 53.98 kB / 0.7692 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.4217, allocations: 3.938 kB / 0.7692 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.4217, allocations: 4 kB / 0.7692 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.4218, allocations: 0 / 0.7692 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.67e-05/0.4218, allocations: 23.98 kB / 0.7692 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001685/0.422, allocations: 165.6 kB / 0.7694 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.4221, allocations: 58.56 kB / 0.7694 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.286e-05/0.4222, allocations: 24.84 kB / 0.7694 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005203/0.4227, allocations: 0.5583 MB / 0.77 GB, free: 15.95 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.4228, allocations: 42.44 kB / 0.77 GB, free: 15.9 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 2.334e-06/0.4228, allocations: 0 / 0.77 GB, free: 15.9 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.01954/0.4423, allocations: 4.381 MB / 0.7743 GB, free: 11.37 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.4424, allocations: 55.41 kB / 0.7744 GB, free: 11.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.551e-05/0.4425, allocations: 93.86 kB / 0.7745 GB, free: 11.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.515e-05/0.4426, allocations: 29.83 kB / 0.7745 GB, free: 11.17 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.008e-05/0.4426, allocations: 85.94 kB / 0.7746 GB, free: 11.08 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.4427, allocations: 55.11 kB / 0.7746 GB, free: 11.03 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000255/0.443, allocations: 97.66 kB / 0.7747 GB, free: 10.93 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.4431, allocations: 314.8 kB / 0.775 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005229/0.4437, allocations: 311.9 kB / 0.7753 GB, free: 10.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005106/0.4442, allocations: 311.9 kB / 0.7756 GB, free: 10 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.4456, allocations: 0.7653 MB / 0.7764 GB, free: 9.234 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.4457, allocations: 4 kB / 0.7764 GB, free: 9.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001535/0.4472, allocations: 0.8058 MB / 0.7771 GB, free: 8.418 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.4472, allocations: 4 kB / 0.7771 GB, free: 8.414 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.4472, allocations: 0 / 0.7771 GB, free: 8.414 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.4473, allocations: 4 kB / 0.7772 GB, free: 8.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008406/0.4481, allocations: 91.95 kB / 0.7772 GB, free: 8.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.4481, allocations: 0 / 0.7772 GB, free: 8.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005346/0.4487, allocations: 7.938 kB / 0.7772 GB, free: 8.312 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.949e-05/0.4488, allocations: 39.97 kB / 0.7773 GB, free: 8.273 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.0001987/0.449, allocations: 125.7 kB / 0.7774 GB, free: 8.141 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.227e-05/0.449, allocations: 7.984 kB / 0.7774 GB, free: 8.133 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003046/0.4521, allocations: 1.392 MB / 0.7788 GB, free: 6.734 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.4521, allocations: 4 kB / 0.7788 GB, free: 6.73 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4521, allocations: 0 / 0.7788 GB, free: 6.73 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.4521, allocations: 3.984 kB / 0.7788 GB, free: 6.727 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002776/0.4549, allocations: 1.819 MB / 0.7806 GB, free: 4.844 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4549, allocations: 0 / 0.7806 GB, free: 4.844 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008074/0.4557, allocations: 111.9 kB / 0.7807 GB, free: 4.734 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.4558, allocations: 0 / 0.7807 GB, free: 4.734 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.009e-05/0.4558, allocations: 35.92 kB / 0.7807 GB, free: 4.699 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.4558, allocations: 0 / 0.7807 GB, free: 4.699 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.4558, allocations: 0 / 0.7807 GB, free: 4.699 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002273/0.4581, allocations: 1.474 MB / 0.7821 GB, free: 3.203 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.395e-05/0.4582, allocations: 92.98 kB / 0.7822 GB, free: 3.094 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.493e-05/0.4583, allocations: 11.88 kB / 0.7822 GB, free: 3.082 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005333/0.4588, allocations: 12 kB / 0.7822 GB, free: 3.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.459, allocations: 39.97 kB / 0.7823 GB, free: 3.031 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.828e-05/0.459, allocations: 35.98 kB / 0.7823 GB, free: 2.996 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.637e-05/0.4591, allocations: 83.28 kB / 0.7824 GB, free: 2.914 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4591, allocations: 0 / 0.7824 GB, free: 2.914 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0005485/0.4596, allocations: 176 kB / 0.7826 GB, free: 2.742 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.0004839/0.4601, allocations: 223.1 kB / 0.7828 GB, free: 2.516 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00123/0.4614, allocations: 0.7222 MB / 0.7835 GB, free: 1.793 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4614, allocations: 0 / 0.7835 GB, free: 1.793 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0006718/0.4621, allocations: 459.6 kB / 0.7839 GB, free: 1.344 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.4624, allocations: 24.97 kB / 0.7839 GB, free: 1.324 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003368/0.4658, allocations: 0.79 MB / 0.7847 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.466, allocations: 0.7142 MB / 0.7854 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009761/0.467, allocations: 293.5 kB / 0.7857 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005365/0.4676, allocations: 95.41 kB / 0.7858 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of SimCode: time 3.1e-07/0.4676, allocations: 0 / 0.7858 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of Templates: time 0.01459/0.4822, allocations: 11.27 MB / 0.7968 GB, free: 4.211 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)