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.001346/0.001346, allocations: 110.3 kB / 16.41 MB, free: 6.477 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.001334/0.001334, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.293/1.293, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002163/0.002162, allocations: 295.1 kB / 291.5 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.9126/0.9126, allocations: 169.2 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 91.86 kB / 0.6822 GB, free: 6.922 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4774/0.4792, allocations: 86.98 MB / 0.7671 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001851/0.4811, allocations: 0.6213 MB / 0.7677 GB, free: 3.312 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001694/0.4828, allocations: 1.279 MB / 0.7689 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.123e-05/0.4829, allocations: 4 kB / 0.769 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.796e-05/0.4829, allocations: 3.938 kB / 0.769 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.868e-05/0.483, allocations: 0 / 0.769 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.4834, allocations: 71.73 kB / 0.769 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.512e-05/0.4835, allocations: 19.98 kB / 0.769 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.597e-05/0.4835, allocations: 4 kB / 0.769 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.372e-05/0.4836, allocations: 15.91 kB / 0.7691 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.335e-05/0.4837, allocations: 15.92 kB / 0.7691 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.4837, allocations: 0 / 0.7691 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002318/0.4839, allocations: 115.8 kB / 0.7692 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.409e-05/0.4839, allocations: 0 / 0.7692 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.833e-05/0.484, allocations: 15.92 kB / 0.7692 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.4841, allocations: 67.84 kB / 0.7693 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.4841, allocations: 0 / 0.7693 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4842, allocations: 0 / 0.7693 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.4842, allocations: 0 / 0.7693 GB, free: 1.688 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.0004532/0.4846, allocations: 355.1 kB / 0.7696 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.4847, allocations: 8.031 kB / 0.7696 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.4847, allocations: 8.938 kB / 0.7696 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.4848, allocations: 164.4 kB / 0.7698 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.4848, allocations: 4.375 kB / 0.7698 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.92e-05/0.4849, allocations: 384 / 0.7698 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00014/0.485, allocations: 57.94 kB / 0.7698 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.485, allocations: 0 / 0.7698 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.4851, allocations: 4 kB / 0.7698 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.4851, allocations: 0 / 0.7698 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.573e-05/0.4851, allocations: 31.95 kB / 0.7699 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001731/0.4853, allocations: 165.6 kB / 0.77 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.4855, allocations: 62.56 kB / 0.7701 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.004e-05/0.4855, allocations: 28.84 kB / 0.7701 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004952/0.486, allocations: 0.5505 MB / 0.7707 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.486, allocations: 54.38 kB / 0.7707 GB, free: 15.93 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.4861, allocations: 3.938 kB / 0.7707 GB, free: 15.92 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.01877/0.5048, allocations: 4.366 MB / 0.775 GB, free: 11.41 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.139e-05/0.5049, allocations: 51.41 kB / 0.775 GB, free: 11.34 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.413e-05/0.505, allocations: 97.86 kB / 0.7751 GB, free: 11.24 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.076e-05/0.505, allocations: 29.7 kB / 0.7751 GB, free: 11.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.985e-05/0.5051, allocations: 85.92 kB / 0.7752 GB, free: 11.12 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.5052, allocations: 59.11 kB / 0.7753 GB, free: 11.06 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002248/0.5054, allocations: 85.67 kB / 0.7754 GB, free: 10.97 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.895e-05/0.5055, allocations: 326.8 kB / 0.7757 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004604/0.506, allocations: 307.9 kB / 0.776 GB, free: 10.34 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004679/0.5065, allocations: 312 kB / 0.7763 GB, free: 10.04 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/0.5079, allocations: 0.7734 MB / 0.777 GB, free: 9.262 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.5079, allocations: 0 / 0.777 GB, free: 9.262 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001411/0.5093, allocations: 0.798 MB / 0.7778 GB, free: 8.457 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.5093, allocations: 8 kB / 0.7778 GB, free: 8.449 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.5094, allocations: 0 / 0.7778 GB, free: 8.449 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.5094, allocations: 0 / 0.7778 GB, free: 8.449 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008009/0.5102, allocations: 95.94 kB / 0.7779 GB, free: 8.355 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.5102, allocations: 3.938 kB / 0.7779 GB, free: 8.352 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005123/0.5107, allocations: 8 kB / 0.7779 GB, free: 8.344 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.497e-05/0.5108, allocations: 39.97 kB / 0.778 GB, free: 8.305 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.0001892/0.511, allocations: 125.7 kB / 0.7781 GB, free: 8.172 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.219e-05/0.5111, allocations: 0 / 0.7781 GB, free: 8.172 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002915/0.514, allocations: 1.396 MB / 0.7794 GB, free: 6.77 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.514, allocations: 4 kB / 0.7794 GB, free: 6.766 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.514, allocations: 0 / 0.7794 GB, free: 6.766 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.514, allocations: 3.984 kB / 0.7794 GB, free: 6.762 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002701/0.5167, allocations: 1.815 MB / 0.7812 GB, free: 4.883 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.5168, allocations: 3.938 kB / 0.7812 GB, free: 4.879 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000775/0.5175, allocations: 107.9 kB / 0.7813 GB, free: 4.773 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.5176, allocations: 4 kB / 0.7813 GB, free: 4.77 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-05/0.5176, allocations: 27.94 kB / 0.7814 GB, free: 4.742 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.5176, allocations: 8.031 kB / 0.7814 GB, free: 4.734 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.5176, allocations: 0 / 0.7814 GB, free: 4.734 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00219/0.5198, allocations: 1.47 MB / 0.7828 GB, free: 3.242 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.633e-05/0.5199, allocations: 88.98 kB / 0.7829 GB, free: 3.137 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.194e-05/0.52, allocations: 11.94 kB / 0.7829 GB, free: 3.125 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005189/0.5205, allocations: 11.98 kB / 0.7829 GB, free: 3.113 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.5207, allocations: 51.97 kB / 0.783 GB, free: 3.062 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.561e-05/0.5207, allocations: 32 kB / 0.783 GB, free: 3.031 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.64e-05/0.5208, allocations: 79.28 kB / 0.7831 GB, free: 2.953 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5208, allocations: 0 / 0.7831 GB, free: 2.953 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0005329/0.5213, allocations: 176 kB / 0.7832 GB, free: 2.781 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.5218, allocations: 223.1 kB / 0.7834 GB, free: 2.555 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001147/0.523, allocations: 0.7222 MB / 0.7841 GB, free: 1.832 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.523, allocations: 12.03 kB / 0.7842 GB, free: 1.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0006068/0.5236, allocations: 451.7 kB / 0.7846 GB, free: 1.379 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.5239, allocations: 20 kB / 0.7846 GB, free: 1.359 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003255/0.5272, allocations: 0.815 MB / 0.7854 GB, free: 0.5117 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.5275, allocations: 0.7182 MB / 0.7861 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005236/0.528, allocations: 95.41 kB / 0.7862 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of SimCode: time 2.7e-07/0.528, allocations: 0 / 0.7862 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of Templates: time 0.009892/0.5379, allocations: 6.916 MB / 0.7929 GB, free: 8.852 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)