Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_11_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.007412/0.007412, allocations: 101 kB / 15.73 MB, free: 6.066 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.00207/0.00207, allocations: 189.4 kB / 16.67 MB, free: 5.977 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.798/2.798, allocations: 469.8 MB / 0.7425 GB, free: 7.348 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 71.88 kB / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2748, allocations: 159.1 MB / 1.22 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001677/0.2765, allocations: 0.6204 MB / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001727/0.2783, allocations: 1.277 MB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.485e-05/0.2783, allocations: 0 / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.538e-05/0.2783, allocations: 0 / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.118e-05/0.2784, allocations: 3.938 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003682/0.2788, allocations: 83.36 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.858e-05/0.2788, allocations: 19.97 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.744e-05/0.2789, allocations: 4 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.708e-05/0.2789, allocations: 11.98 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.321e-05/0.279, allocations: 15.92 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.377e-05/0.279, allocations: 4 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002449/0.2792, allocations: 95.89 kB / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.885e-05/0.2793, allocations: 11.92 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.377e-05/0.2793, allocations: 11.92 kB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.2794, allocations: 67.84 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2795, allocations: 4 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2795, allocations: 3.938 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.2795, allocations: 0 / 1.222 GB, free: 12 MB / 0.9825 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.0004648/0.2799, allocations: 347.3 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.28, allocations: 12.03 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.307e-05/0.28, allocations: 42.67 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.675e-05/0.2801, allocations: 4.938 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.2802, allocations: 160.4 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.2802, allocations: 4.375 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.2802, allocations: 8.328 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.2804, allocations: 61.78 kB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.2804, allocations: 0 / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.2804, allocations: 3.938 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.2804, allocations: 0 / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.074e-05/0.2805, allocations: 31.92 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001925/0.2807, allocations: 165.6 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.2808, allocations: 62.55 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.406e-05/0.2809, allocations: 24.86 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005659/0.2814, allocations: 0.5583 MB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.2815, allocations: 38.5 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.2815, allocations: 0 / 1.224 GB, free: 10.2 MB / 0.9825 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.02052/0.302, allocations: 4.377 MB / 1.228 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.3021, allocations: 55.41 kB / 1.228 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.721e-05/0.3022, allocations: 93.8 kB / 1.228 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 7.141e-05/0.3022, allocations: 33.83 kB / 1.228 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.811e-05/0.3023, allocations: 80.14 kB / 1.228 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.3024, allocations: 59.48 kB / 1.228 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002755/0.3027, allocations: 93.66 kB / 1.229 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3028, allocations: 318.8 kB / 1.229 GB, free: 4.898 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005862/0.3034, allocations: 311.9 kB / 1.229 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005779/0.304, allocations: 314 kB / 1.229 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/0.3057, allocations: 0.7662 MB / 1.23 GB, free: 3.52 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.3057, allocations: 4 kB / 1.23 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001692/0.3074, allocations: 0.8042 MB / 1.231 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.3074, allocations: 4 kB / 1.231 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3074, allocations: 0 / 1.231 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.3074, allocations: 0 / 1.231 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008447/0.3083, allocations: 99.89 kB / 1.231 GB, free: 2.605 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3083, allocations: 3.984 kB / 1.231 GB, free: 2.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005539/0.3089, allocations: 4 kB / 1.231 GB, free: 2.598 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.687e-05/0.309, allocations: 31.98 kB / 1.231 GB, free: 2.566 MB / 0.9825 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.3092, allocations: 130.2 kB / 1.231 GB, free: 2.43 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.229e-05/0.3092, allocations: 7.953 kB / 1.231 GB, free: 2.422 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003356/0.3126, allocations: 1.396 MB / 1.233 GB, free: 1.02 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/0.3126, allocations: 11.98 kB / 1.233 GB, free: 1.008 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3126, allocations: 0 / 1.233 GB, free: 1.008 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3126, allocations: 0 / 1.233 GB, free: 1.008 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003137/0.3158, allocations: 1.818 MB / 1.234 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3158, allocations: 0 / 1.234 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008401/0.3166, allocations: 111.9 kB / 1.234 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3167, allocations: 0 / 1.234 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.89e-05/0.3167, allocations: 31.92 kB / 1.235 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.3168, allocations: 4 kB / 1.235 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3168, allocations: 3.938 kB / 1.235 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002591/0.3194, allocations: 1.474 MB / 1.236 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.929e-05/0.3194, allocations: 89.03 kB / 1.236 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.12e-05/0.3195, allocations: 11.94 kB / 1.236 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005473/0.3201, allocations: 12 kB / 1.236 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.3202, allocations: 39.97 kB / 1.236 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.22e-05/0.3203, allocations: 35.98 kB / 1.236 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.365e-05/0.3204, allocations: 83.28 kB / 1.236 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3204, allocations: 0 / 1.236 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005274/0.3209, allocations: 179.7 kB / 1.236 GB, free: 13.02 MB / 0.9981 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.003279/0.3242, allocations: 2.131 MB / 1.238 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001344/0.3256, allocations: 0.742 MB / 1.239 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.3256, allocations: 0 / 1.239 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007263/0.3263, allocations: 451.7 kB / 1.24 GB, free: 9.68 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.3266, allocations: 19.92 kB / 1.24 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00811/0.3347, allocations: 3.715 MB / 1.243 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.3351, allocations: 0.7182 MB / 1.244 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001065/0.3362, allocations: 293.5 kB / 1.244 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005993/0.3368, allocations: 115.4 kB / 1.244 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.3368, allocations: 0 / 1.244 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5073/0.8441, allocations: 12.71 MB / 1.257 GB, free: 30.35 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.769/8.613, allocations: 7.594 kB / 1.257 GB, free: 30.35 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)