Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_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.007814/0.007814, allocations: 97.42 kB / 15.73 MB, free: 5.988 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.00202/0.00202, allocations: 185.1 kB / 16.67 MB, free: 5.918 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.526/1.526, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.755/2.755, allocations: 437 MB / 0.7105 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 75.89 kB / 1.018 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2976, allocations: 151.6 MB / 1.166 GB, free: 7.402 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001623/0.2993, allocations: 0.6223 MB / 1.167 GB, free: 6.781 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001676/0.301, allocations: 1.28 MB / 1.168 GB, free: 5.484 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.883e-05/0.301, allocations: 4 kB / 1.168 GB, free: 5.48 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.495e-05/0.301, allocations: 3.938 kB / 1.168 GB, free: 5.477 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.074e-05/0.3011, allocations: 0 / 1.168 GB, free: 5.477 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.3014, allocations: 79.72 kB / 1.168 GB, free: 5.398 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 5.713e-05/0.3015, allocations: 15.98 kB / 1.168 GB, free: 5.383 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.301e-05/0.3015, allocations: 4 kB / 1.168 GB, free: 5.379 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.477e-05/0.3016, allocations: 15.92 kB / 1.168 GB, free: 5.363 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.373e-05/0.3016, allocations: 15.92 kB / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.3017, allocations: 7.984 kB / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002258/0.3019, allocations: 99.84 kB / 1.168 GB, free: 5.242 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.744e-05/0.3019, allocations: 11.97 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.075e-05/0.3019, allocations: 7.938 kB / 1.168 GB, free: 5.223 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.3021, allocations: 72.06 kB / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3021, allocations: 0 / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3021, allocations: 0 / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.197e-06/0.3021, allocations: 0 / 1.168 GB, free: 5.152 MB / 0.92 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.0004653/0.3026, allocations: 347.3 kB / 1.169 GB, free: 4.766 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.3026, allocations: 12.03 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.296e-05/0.3027, allocations: 42.73 kB / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.405e-05/0.3027, allocations: 0.9375 kB / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.3029, allocations: 168.3 kB / 1.169 GB, free: 4.5 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.3029, allocations: 384 / 1.169 GB, free: 4.5 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.829e-05/0.3029, allocations: 12.33 kB / 1.169 GB, free: 4.488 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.3031, allocations: 57.73 kB / 1.169 GB, free: 4.426 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3031, allocations: 0 / 1.169 GB, free: 4.426 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.3031, allocations: 7.938 kB / 1.169 GB, free: 4.418 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.3031, allocations: 0 / 1.169 GB, free: 4.418 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.744e-05/0.3032, allocations: 23.98 kB / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001891/0.3034, allocations: 169.7 kB / 1.169 GB, free: 4.18 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001229/0.3035, allocations: 58.55 kB / 1.169 GB, free: 4.113 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.703e-05/0.3036, allocations: 32.73 kB / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005466/0.3041, allocations: 0.5583 MB / 1.17 GB, free: 3.391 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.3042, allocations: 42.5 kB / 1.17 GB, free: 3.34 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.3042, allocations: 0 / 1.17 GB, free: 3.34 MB / 0.92 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.02072/0.3249, allocations: 4.366 MB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.325, allocations: 59.41 kB / 1.174 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.603e-05/0.325, allocations: 93.86 kB / 1.174 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.519e-05/0.3251, allocations: 25.7 kB / 1.174 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.694e-05/0.3252, allocations: 80.14 kB / 1.174 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.3253, allocations: 55.55 kB / 1.174 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/0.3255, allocations: 97.66 kB / 1.175 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3257, allocations: 314.8 kB / 1.175 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005876/0.3263, allocations: 320 kB / 1.175 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005777/0.3269, allocations: 307.9 kB / 1.175 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001668/0.3285, allocations: 0.7641 MB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.3286, allocations: 3.938 kB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001711/0.3303, allocations: 0.8059 MB / 1.177 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3303, allocations: 5.875 kB / 1.177 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.3303, allocations: 3.938 kB / 1.177 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.3303, allocations: 0 / 1.177 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008536/0.3312, allocations: 91.95 kB / 1.177 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.3312, allocations: 8.922 kB / 1.177 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005334/0.3318, allocations: 11.98 kB / 1.177 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.559e-05/0.3319, allocations: 39.92 kB / 1.177 GB, free: 11.71 MB / 0.9356 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.0001898/0.3321, allocations: 117.8 kB / 1.177 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.17e-05/0.3321, allocations: 7.953 kB / 1.177 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003481/0.3356, allocations: 1.396 MB / 1.179 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.3357, allocations: 7.938 kB / 1.179 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3357, allocations: 0 / 1.179 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.3357, allocations: 0 / 1.179 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003265/0.3389, allocations: 1.814 MB / 1.18 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.339, allocations: 0 / 1.18 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008262/0.3398, allocations: 107.9 kB / 1.18 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.3398, allocations: 8.016 kB / 1.18 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.839e-05/0.3399, allocations: 31.94 kB / 1.181 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.3399, allocations: 4 kB / 1.181 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3399, allocations: 0 / 1.181 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002631/0.3426, allocations: 1.462 MB / 1.182 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.955e-05/0.3426, allocations: 89.03 kB / 1.182 GB, free: 6.547 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.401e-05/0.3427, allocations: 15.88 kB / 1.182 GB, free: 6.531 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005474/0.3433, allocations: 12.06 kB / 1.182 GB, free: 6.52 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.3434, allocations: 43.97 kB / 1.182 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.659e-05/0.3435, allocations: 35.98 kB / 1.182 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.025e-05/0.3436, allocations: 75.28 kB / 1.182 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3436, allocations: 0 / 1.182 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0005785/0.3442, allocations: 179.7 kB / 1.182 GB, free: 6.191 MB / 0.9356 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.003358/0.3475, allocations: 2.142 MB / 1.184 GB, free: 4.02 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001411/0.349, allocations: 0.7262 MB / 1.185 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.349, allocations: 0 / 1.185 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0007384/0.3497, allocations: 452 kB / 1.186 GB, free: 2.852 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.3501, allocations: 19.92 kB / 1.186 GB, free: 2.832 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008151/0.3582, allocations: 3.728 MB / 1.189 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.3586, allocations: 0.7142 MB / 1.19 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001088/0.3597, allocations: 301.5 kB / 1.19 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006124/0.3603, allocations: 119.3 kB / 1.19 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of SimCode: time 5.91e-07/0.3603, allocations: 0 / 1.19 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03825/0.3986, allocations: 12.72 MB / 1.203 GB, free: 1.34 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.166/8.564, allocations: 9.641 kB / 1.203 GB, free: 1.332 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.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 Buildings_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)