Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001136/0.001136, allocations: 102.8 kB / 16.27 MB, free: 5.973 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.001296/0.001296, allocations: 188.6 kB / 17.19 MB, free: 5.602 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.358/1.358, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8595/0.8595, allocations: 122.9 MB / 413.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 63.91 kB / 0.4911 GB, free: 7.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.428/0.4296, allocations: 77.93 MB / 0.5672 GB, free: 32.69 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002169/0.4318, allocations: 0.6056 MB / 0.5678 GB, free: 32.31 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.4339, allocations: 1.276 MB / 0.5691 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.059e-05/0.434, allocations: 0 / 0.5691 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.25e-05/0.434, allocations: 0.5625 kB / 0.5691 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.267e-05/0.4341, allocations: 0 / 0.5691 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004991/0.4346, allocations: 83.33 kB / 0.5691 GB, free: 31.34 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.711e-05/0.4347, allocations: 19.84 kB / 0.5692 GB, free: 31.33 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.364e-05/0.4347, allocations: 6.938 kB / 0.5692 GB, free: 31.33 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.516e-05/0.4348, allocations: 15.47 kB / 0.5692 GB, free: 31.32 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.402e-05/0.4349, allocations: 21.75 kB / 0.5692 GB, free: 31.31 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.674e-05/0.4349, allocations: 1.281 kB / 0.5692 GB, free: 31.31 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002981/0.4352, allocations: 94.97 kB / 0.5693 GB, free: 31.29 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.367e-05/0.4353, allocations: 11.67 kB / 0.5693 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.06e-05/0.4353, allocations: 9.125 kB / 0.5693 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002129/0.4355, allocations: 68.42 kB / 0.5694 GB, free: 31.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.4355, allocations: 1.781 kB / 0.5694 GB, free: 31.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4355, allocations: 0 / 0.5694 GB, free: 31.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.4355, allocations: 1.062 kB / 0.5694 GB, free: 31.25 MB / 446.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.0005106/0.4361, allocations: 353.7 kB / 0.5697 GB, free: 30.89 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.4361, allocations: 10.83 kB / 0.5697 GB, free: 30.89 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.13e-05/0.4362, allocations: 4.656 kB / 0.5697 GB, free: 30.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.558e-05/0.4363, allocations: 166.6 kB / 0.5699 GB, free: 30.69 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.4363, allocations: 6.562 kB / 0.5699 GB, free: 30.68 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.249e-05/0.4363, allocations: 3.438 kB / 0.5699 GB, free: 30.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/0.4365, allocations: 59.92 kB / 0.57 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.4365, allocations: 1.969 kB / 0.57 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.4365, allocations: 1.672 kB / 0.57 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.383e-06/0.4365, allocations: 1.094 kB / 0.57 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.302e-05/0.4366, allocations: 23.3 kB / 0.57 GB, free: 30.63 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001891/0.4368, allocations: 171.1 kB / 0.5702 GB, free: 30.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.437, allocations: 65.77 kB / 0.5702 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.115e-05/0.437, allocations: 27.64 kB / 0.5702 GB, free: 30.37 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004213/0.4375, allocations: 0.5574 MB / 0.5708 GB, free: 29.71 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/0.4375, allocations: 38.52 kB / 0.5708 GB, free: 29.67 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.342e-06/0.4375, allocations: 0 / 0.5708 GB, free: 29.67 MB / 446.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.02104/0.4586, allocations: 4.37 MB / 0.5751 GB, free: 27.94 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.4586, allocations: 53.19 kB / 0.5751 GB, free: 27.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.409e-05/0.4587, allocations: 96.36 kB / 0.5752 GB, free: 27.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.092e-05/0.4588, allocations: 32.28 kB / 0.5753 GB, free: 27.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.219e-05/0.4588, allocations: 80.14 kB / 0.5753 GB, free: 27.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.4589, allocations: 63.08 kB / 0.5754 GB, free: 27.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00026/0.4592, allocations: 88.78 kB / 0.5755 GB, free: 27.58 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.007e-05/0.4592, allocations: 323.2 kB / 0.5758 GB, free: 27.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005573/0.4598, allocations: 307.3 kB / 0.5761 GB, free: 27.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005291/0.4603, allocations: 312.5 kB / 0.5764 GB, free: 27.01 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.4619, allocations: 0.775 MB / 0.5771 GB, free: 26.67 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.4619, allocations: 2.031 kB / 0.5771 GB, free: 26.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001636/0.4636, allocations: 0.7982 MB / 0.5779 GB, free: 26.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.4636, allocations: 5.031 kB / 0.5779 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.4636, allocations: 0 / 0.5779 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.4637, allocations: 1.812 kB / 0.5779 GB, free: 26.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009112/0.4646, allocations: 95.72 kB / 0.578 GB, free: 26.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.4646, allocations: 0 / 0.578 GB, free: 26.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000576/0.4652, allocations: 9.672 kB / 0.578 GB, free: 26.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.006e-05/0.4653, allocations: 33.02 kB / 0.5781 GB, free: 26.33 MB / 446.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.0001899/0.4655, allocations: 126.6 kB / 0.5782 GB, free: 26.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.39e-05/0.4656, allocations: 6.844 kB / 0.5782 GB, free: 26.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003424/0.469, allocations: 1.401 MB / 0.5796 GB, free: 25.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.469, allocations: 7.625 kB / 0.5796 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.469, allocations: 2.109 kB / 0.5796 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.469, allocations: 1.969 kB / 0.5796 GB, free: 25.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002976/0.472, allocations: 1.809 MB / 0.5813 GB, free: 24.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.472, allocations: 13 kB / 0.5814 GB, free: 24.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008627/0.4729, allocations: 110.1 kB / 0.5815 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/0.4729, allocations: 1.469 kB / 0.5815 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.832e-05/0.473, allocations: 31.05 kB / 0.5815 GB, free: 24.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.473, allocations: 6.906 kB / 0.5815 GB, free: 24.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.473, allocations: 0.9375 kB / 0.5815 GB, free: 24.47 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002371/0.4754, allocations: 1.469 MB / 0.5829 GB, free: 23.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.703e-05/0.4755, allocations: 90.23 kB / 0.583 GB, free: 23.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.994e-05/0.4756, allocations: 15.53 kB / 0.583 GB, free: 23.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000571/0.4762, allocations: 10.69 kB / 0.583 GB, free: 23.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.4763, allocations: 42.36 kB / 0.5831 GB, free: 23.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.342e-05/0.4764, allocations: 28.48 kB / 0.5831 GB, free: 23.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.426e-05/0.4765, allocations: 76.5 kB / 0.5832 GB, free: 23.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4765, allocations: 0 / 0.5832 GB, free: 23.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000695/0.4772, allocations: 185 kB / 0.5834 GB, free: 23.48 MB / 446.1 MB 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.0006076/0.4778, allocations: 219.7 kB / 0.5836 GB, free: 23.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.4792, allocations: 0.7499 MB / 0.5843 GB, free: 23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.4792, allocations: 0 / 0.5843 GB, free: 23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006576/0.4798, allocations: 447.4 kB / 0.5847 GB, free: 22.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.4802, allocations: 22.92 kB / 0.5847 GB, free: 22.76 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003644/0.4838, allocations: 0.796 MB / 0.5855 GB, free: 22.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/0.484, allocations: 0.7141 MB / 0.5862 GB, free: 21.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001495/0.4855, allocations: 292.8 kB / 0.5865 GB, free: 21.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005774/0.4861, allocations: 94.5 kB / 0.5866 GB, free: 21.46 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4861, allocations: 0 / 0.5866 GB, free: 21.46 MB / 446.1 MB Notification: Performance of Templates: time 0.01583/0.5019, allocations: 11.22 MB / 0.5976 GB, free: 11.24 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)