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: "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 102.9 kB / 16.27 MB, free: 5.977 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.001322/0.001322, allocations: 188.5 kB / 17.19 MB, free: 5.605 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.301/1.301, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7258/0.7258, allocations: 122.8 MB / 413.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 67.89 kB / 0.4912 GB, free: 7.348 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3308, allocations: 77.92 MB / 0.5673 GB, free: 32.63 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00178/0.3327, allocations: 0.6048 MB / 0.5679 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.3341, allocations: 1.273 MB / 0.5691 GB, free: 31.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.573e-05/0.3341, allocations: 3.938 kB / 0.5691 GB, free: 31.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.56e-05/0.3341, allocations: 4.562 kB / 0.5691 GB, free: 31.31 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 1.798e-05/0.3342, allocations: 0.8125 kB / 0.5691 GB, free: 31.31 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003849/0.3346, allocations: 79.02 kB / 0.5692 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.392e-05/0.3346, allocations: 19.89 kB / 0.5692 GB, free: 31.27 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.229e-05/0.3347, allocations: 6.219 kB / 0.5692 GB, free: 31.27 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.76e-05/0.3347, allocations: 15.97 kB / 0.5693 GB, free: 31.26 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.879e-05/0.3348, allocations: 16.36 kB / 0.5693 GB, free: 31.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.3348, allocations: 2.562 kB / 0.5693 GB, free: 31.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002407/0.3351, allocations: 103.3 kB / 0.5694 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.51e-05/0.3351, allocations: 7.219 kB / 0.5694 GB, free: 31.22 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.3351, allocations: 13 kB / 0.5694 GB, free: 31.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.3353, allocations: 68.97 kB / 0.5695 GB, free: 31.19 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3353, allocations: 2.438 kB / 0.5695 GB, free: 31.19 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3353, allocations: 0 / 0.5695 GB, free: 31.19 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.3353, allocations: 0 / 0.5695 GB, free: 31.19 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.0003783/0.3357, allocations: 353.7 kB / 0.5698 GB, free: 30.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.3358, allocations: 10.94 kB / 0.5698 GB, free: 30.82 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.757e-05/0.3358, allocations: 33.83 kB / 0.5698 GB, free: 30.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.005e-05/0.3358, allocations: 8.172 kB / 0.5698 GB, free: 30.78 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.633e-05/0.3359, allocations: 162.7 kB / 0.57 GB, free: 30.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.3359, allocations: 2.219 kB / 0.57 GB, free: 30.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.3359, allocations: 6.75 kB / 0.57 GB, free: 30.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/0.3361, allocations: 59.67 kB / 0.5701 GB, free: 30.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.3361, allocations: 1.094 kB / 0.5701 GB, free: 30.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.3361, allocations: 0 / 0.5701 GB, free: 30.54 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.3361, allocations: 2.547 kB / 0.5701 GB, free: 30.54 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.78e-05/0.3362, allocations: 25.59 kB / 0.5701 GB, free: 30.53 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001425/0.3363, allocations: 170.9 kB / 0.5703 GB, free: 30.33 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001204/0.3364, allocations: 63.22 kB / 0.5703 GB, free: 30.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.582e-05/0.3365, allocations: 27.8 kB / 0.5703 GB, free: 30.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004333/0.3369, allocations: 0.5569 MB / 0.5709 GB, free: 29.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.337, allocations: 36.56 kB / 0.5709 GB, free: 29.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.337, allocations: 0.7188 kB / 0.5709 GB, free: 29.57 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.02046/0.3574, allocations: 4.363 MB / 0.5752 GB, free: 27.84 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.3575, allocations: 53.22 kB / 0.5752 GB, free: 27.78 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.664e-05/0.3576, allocations: 97.14 kB / 0.5753 GB, free: 27.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.782e-05/0.3576, allocations: 31.48 kB / 0.5754 GB, free: 27.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.365e-05/0.3576, allocations: 80.14 kB / 0.5754 GB, free: 27.56 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.3578, allocations: 63.22 kB / 0.5755 GB, free: 27.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002354/0.358, allocations: 89.42 kB / 0.5756 GB, free: 27.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.71e-05/0.358, allocations: 322.6 kB / 0.5759 GB, free: 27.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004852/0.3585, allocations: 307.3 kB / 0.5762 GB, free: 27.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004938/0.359, allocations: 314.4 kB / 0.5765 GB, free: 26.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001405/0.3605, allocations: 0.7762 MB / 0.5772 GB, free: 26.57 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.3605, allocations: 0 / 0.5772 GB, free: 26.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001428/0.3619, allocations: 0.8023 MB / 0.578 GB, free: 26.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3619, allocations: 5.531 kB / 0.578 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.3619, allocations: 0 / 0.578 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.362, allocations: 1.719 kB / 0.578 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008691/0.3628, allocations: 90.62 kB / 0.5781 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.3629, allocations: 6.5 kB / 0.5781 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000532/0.3634, allocations: 12.38 kB / 0.5781 GB, free: 26.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.994e-05/0.3635, allocations: 33.97 kB / 0.5782 GB, free: 26.22 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.0001692/0.3636, allocations: 126.8 kB / 0.5783 GB, free: 26.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.438e-05/0.3637, allocations: 10.59 kB / 0.5783 GB, free: 26.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003148/0.3669, allocations: 1.401 MB / 0.5797 GB, free: 25.44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.3669, allocations: 4.125 kB / 0.5797 GB, free: 25.44 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3669, allocations: 0.6562 kB / 0.5797 GB, free: 25.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3669, allocations: 3.547 kB / 0.5797 GB, free: 25.44 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002602/0.3695, allocations: 1.812 MB / 0.5814 GB, free: 24.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3696, allocations: 5.531 kB / 0.5815 GB, free: 24.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007909/0.3704, allocations: 109.3 kB / 0.5816 GB, free: 24.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.3704, allocations: 6.469 kB / 0.5816 GB, free: 24.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.149e-05/0.3704, allocations: 30.75 kB / 0.5816 GB, free: 24.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.3705, allocations: 2.234 kB / 0.5816 GB, free: 24.37 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3705, allocations: 1.312 kB / 0.5816 GB, free: 24.37 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002149/0.3726, allocations: 1.476 MB / 0.583 GB, free: 23.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.673e-05/0.3727, allocations: 94.88 kB / 0.5831 GB, free: 23.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.985e-05/0.3728, allocations: 10 kB / 0.5831 GB, free: 23.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000528/0.3733, allocations: 10 kB / 0.5831 GB, free: 23.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.3735, allocations: 44.09 kB / 0.5832 GB, free: 23.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.887e-05/0.3735, allocations: 32.61 kB / 0.5832 GB, free: 23.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.965e-05/0.3736, allocations: 76.59 kB / 0.5833 GB, free: 23.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3736, allocations: 0 / 0.5833 GB, free: 23.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007127/0.3743, allocations: 176.3 kB / 0.5835 GB, free: 23.38 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.003046/0.3773, allocations: 2.12 MB / 0.5855 GB, free: 22.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.3786, allocations: 0.7479 MB / 0.5863 GB, free: 21.67 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3786, allocations: 0.9688 kB / 0.5863 GB, free: 21.67 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006001/0.3792, allocations: 450.2 kB / 0.5867 GB, free: 21.44 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.3795, allocations: 24.47 kB / 0.5867 GB, free: 21.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007603/0.3872, allocations: 3.705 MB / 0.5903 GB, free: 18.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001067/0.3873, allocations: 0.7182 MB / 0.591 GB, free: 17.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001317/0.3886, allocations: 297.5 kB / 0.5913 GB, free: 17.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000516/0.3891, allocations: 115.4 kB / 0.5914 GB, free: 17.43 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3892, allocations: 0 / 0.5914 GB, free: 17.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02824/0.4174, allocations: 12.65 MB / 0.6038 GB, free: 4.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.278/7.696, allocations: 19.66 kB / 0.6038 GB, free: 4.961 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)