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.001925/0.001925, allocations: 101 kB / 17.03 MB, free: 6.035 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.002012/0.002013, allocations: 196.1 kB / 17.98 MB, free: 5.113 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.265/1.265, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6874/0.6874, allocations: 115.1 MB / 407 MB, free: 6.32 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 67.84 kB / 494.8 MB, free: 15.85 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.348, allocations: 76.13 MB / 0.5576 GB, free: 36.63 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001897/0.35, allocations: 0.6057 MB / 0.5582 GB, free: 36.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.3512, allocations: 1.277 MB / 0.5594 GB, free: 35.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.501e-05/0.3512, allocations: 0 / 0.5594 GB, free: 35.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.226e-05/0.3512, allocations: 3.938 kB / 0.5594 GB, free: 35.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 1.816e-05/0.3513, allocations: 0.6875 kB / 0.5594 GB, free: 35.34 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000323/0.3516, allocations: 75.02 kB / 0.5595 GB, free: 35.3 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.459e-05/0.3516, allocations: 27.44 kB / 0.5595 GB, free: 35.29 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.051e-05/0.3517, allocations: 7.266 kB / 0.5595 GB, free: 35.29 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.08e-05/0.3517, allocations: 7.625 kB / 0.5595 GB, free: 35.29 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.952e-05/0.3518, allocations: 18.86 kB / 0.5596 GB, free: 35.28 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.087e-05/0.3518, allocations: 1.812 kB / 0.5596 GB, free: 35.28 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001944/0.352, allocations: 105.3 kB / 0.5597 GB, free: 35.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.319e-05/0.352, allocations: 3.156 kB / 0.5597 GB, free: 35.25 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.314e-05/0.352, allocations: 17.72 kB / 0.5597 GB, free: 35.24 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.3522, allocations: 65.27 kB / 0.5597 GB, free: 35.22 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3522, allocations: 0 / 0.5597 GB, free: 35.22 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3522, allocations: 2.031 kB / 0.5597 GB, free: 35.22 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.3522, allocations: 0.9062 kB / 0.5597 GB, free: 35.22 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.0003508/0.3526, allocations: 348.2 kB / 0.5601 GB, free: 34.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.3526, allocations: 9.062 kB / 0.5601 GB, free: 34.86 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.963e-05/0.3527, allocations: 8 kB / 0.5601 GB, free: 34.85 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.187e-05/0.3527, allocations: 163.5 kB / 0.5602 GB, free: 34.66 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.3527, allocations: 3.578 kB / 0.5603 GB, free: 34.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.3528, allocations: 7.188 kB / 0.5603 GB, free: 34.65 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.3529, allocations: 61.89 kB / 0.5603 GB, free: 34.61 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.3529, allocations: 0 / 0.5603 GB, free: 34.61 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-06/0.3529, allocations: 6.688 kB / 0.5603 GB, free: 34.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.3529, allocations: 1.344 kB / 0.5603 GB, free: 34.6 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.369e-05/0.353, allocations: 26.12 kB / 0.5604 GB, free: 34.59 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001293/0.3531, allocations: 163 kB / 0.5605 GB, free: 34.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001019/0.3532, allocations: 57.92 kB / 0.5606 GB, free: 34.37 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.811e-05/0.3533, allocations: 33.88 kB / 0.5606 GB, free: 34.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000338/0.3536, allocations: 0.56 MB / 0.5611 GB, free: 33.69 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.3537, allocations: 45.52 kB / 0.5612 GB, free: 33.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.3537, allocations: 1.812 kB / 0.5612 GB, free: 33.64 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.01849/0.3722, allocations: 4.361 MB / 0.5654 GB, free: 31.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.13e-05/0.3722, allocations: 53.25 kB / 0.5655 GB, free: 31.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.599e-05/0.3723, allocations: 92.5 kB / 0.5656 GB, free: 31.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.198e-05/0.3723, allocations: 30.27 kB / 0.5656 GB, free: 31.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.321e-05/0.3723, allocations: 81.27 kB / 0.5657 GB, free: 31.63 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.492e-05/0.3724, allocations: 58.08 kB / 0.5657 GB, free: 31.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002449/0.3727, allocations: 93.97 kB / 0.5658 GB, free: 31.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.935e-05/0.3727, allocations: 322.2 kB / 0.5661 GB, free: 31.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004717/0.3732, allocations: 308 kB / 0.5664 GB, free: 31.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004681/0.3737, allocations: 317.3 kB / 0.5667 GB, free: 30.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.3751, allocations: 0.7655 MB / 0.5675 GB, free: 30.65 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3751, allocations: 1.688 kB / 0.5675 GB, free: 30.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001426/0.3765, allocations: 0.8043 MB / 0.5683 GB, free: 30.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.3765, allocations: 8.562 kB / 0.5683 GB, free: 30.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.3766, allocations: 0.7031 kB / 0.5683 GB, free: 30.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.3766, allocations: 1.062 kB / 0.5683 GB, free: 30.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007559/0.3773, allocations: 99.86 kB / 0.5684 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.3773, allocations: 0 / 0.5684 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004517/0.3778, allocations: 6.547 kB / 0.5684 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-05/0.3779, allocations: 34.03 kB / 0.5684 GB, free: 30.31 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.0001529/0.3781, allocations: 125.1 kB / 0.5685 GB, free: 30.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.397e-05/0.3781, allocations: 2.875 kB / 0.5685 GB, free: 30.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002809/0.381, allocations: 1.401 MB / 0.5699 GB, free: 29.53 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.381, allocations: 8.281 kB / 0.5699 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.381, allocations: 1.062 kB / 0.5699 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.381, allocations: 2.344 kB / 0.5699 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002565/0.3836, allocations: 1.826 MB / 0.5717 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3836, allocations: 0 / 0.5717 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007156/0.3843, allocations: 114.2 kB / 0.5718 GB, free: 28.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.3843, allocations: 1.375 kB / 0.5718 GB, free: 28.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-05/0.3844, allocations: 31.25 kB / 0.5718 GB, free: 28.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3844, allocations: 2.078 kB / 0.5718 GB, free: 28.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3844, allocations: 1.375 kB / 0.5718 GB, free: 28.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/0.3865, allocations: 1.478 MB / 0.5733 GB, free: 27.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.647e-05/0.3865, allocations: 87.12 kB / 0.5734 GB, free: 27.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.504e-05/0.3866, allocations: 11.45 kB / 0.5734 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004401/0.3871, allocations: 10.28 kB / 0.5734 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.3872, allocations: 45.98 kB / 0.5734 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.395e-05/0.3873, allocations: 32.62 kB / 0.5735 GB, free: 27.56 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.788e-05/0.3873, allocations: 77.14 kB / 0.5735 GB, free: 27.49 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3873, allocations: 4.094 kB / 0.5735 GB, free: 27.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005688/0.3879, allocations: 180.2 kB / 0.5737 GB, free: 27.46 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.0004204/0.3883, allocations: 223.9 kB / 0.5739 GB, free: 27.33 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.3894, allocations: 0.7248 MB / 0.5746 GB, free: 27.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3894, allocations: 0 / 0.5746 GB, free: 27.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005642/0.39, allocations: 456.8 kB / 0.5751 GB, free: 26.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.3903, allocations: 18.59 kB / 0.5751 GB, free: 26.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002782/0.393, allocations: 0.795 MB / 0.5759 GB, free: 26.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.3932, allocations: 0.7151 MB / 0.5766 GB, free: 25.78 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000895/0.3941, allocations: 294.5 kB / 0.5768 GB, free: 25.62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000511/0.3946, allocations: 94.27 kB / 0.5769 GB, free: 25.61 MB / 446.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3946, allocations: 0 / 0.5769 GB, free: 25.61 MB / 446.1 MB Notification: Performance of Templates: time 0.01391/0.4085, allocations: 11.22 MB / 0.5879 GB, free: 21 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 -s cvode -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)