Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_8_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.001055/0.001055, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 187.9 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.674/1.674, allocations: 292.3 MB / 0.549 GB, free: 12.73 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 70.38 kB / 0.6718 GB, free: 26.44 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2349, allocations: 114.6 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001785/0.2368, allocations: 0.6093 MB / 0.7842 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00146/0.2382, allocations: 1.311 MB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.048e-05/0.2383, allocations: 0 / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.346e-05/0.2383, allocations: 3.938 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 1.958e-05/0.2383, allocations: 4 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003466/0.2387, allocations: 75.66 kB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.453e-05/0.2387, allocations: 19.98 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.086e-05/0.2388, allocations: 0 / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.761e-05/0.2388, allocations: 15.94 kB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.203e-05/0.2389, allocations: 15.97 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.2389, allocations: 0 / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/0.2391, allocations: 99.83 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.468e-05/0.2391, allocations: 3.984 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.413e-05/0.2392, allocations: 19.88 kB / 0.7858 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001256/0.2393, allocations: 67.8 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.2393, allocations: 0 / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2393, allocations: 0 / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.2393, allocations: 0 / 0.7858 GB, free: 11 MB / 0.6075 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.0004108/0.2397, allocations: 355.7 kB / 0.7862 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.2398, allocations: 8.031 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.254e-05/0.2398, allocations: 34.75 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.508e-05/0.2398, allocations: 0.9375 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.24, allocations: 168.4 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.24, allocations: 8.375 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.295e-05/0.24, allocations: 8.359 kB / 0.7864 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/0.2401, allocations: 57.8 kB / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.2401, allocations: 0 / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.2402, allocations: 3.984 kB / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.2402, allocations: 0 / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.248e-05/0.2402, allocations: 27.92 kB / 0.7865 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001564/0.2404, allocations: 165.6 kB / 0.7866 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.2405, allocations: 58.56 kB / 0.7867 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.167e-05/0.2406, allocations: 28.84 kB / 0.7867 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004266/0.241, allocations: 0.5505 MB / 0.7873 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.241, allocations: 38.5 kB / 0.7873 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 2.194e-06/0.241, allocations: 4 kB / 0.7873 GB, free: 9.199 MB / 0.6075 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.01835/0.2594, allocations: 4.304 MB / 0.7915 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.2595, allocations: 55.41 kB / 0.7916 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.403e-05/0.2595, allocations: 93.86 kB / 0.7916 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.571e-05/0.2596, allocations: 29.7 kB / 0.7917 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.275e-05/0.2597, allocations: 84.14 kB / 0.7917 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.561e-05/0.2598, allocations: 55.19 kB / 0.7918 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002287/0.26, allocations: 93.66 kB / 0.7919 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2601, allocations: 318.8 kB / 0.7922 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004963/0.2606, allocations: 311.8 kB / 0.7925 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004832/0.2611, allocations: 314.5 kB / 0.7928 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.2625, allocations: 0.7508 MB / 0.7935 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2625, allocations: 4 kB / 0.7935 GB, free: 2.613 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001472/0.264, allocations: 0.7972 MB / 0.7943 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.264, allocations: 4 kB / 0.7943 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.264, allocations: 0 / 0.7943 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.2641, allocations: 4 kB / 0.7943 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008157/0.2649, allocations: 87.95 kB / 0.7944 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.2649, allocations: 3.984 kB / 0.7944 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004985/0.2654, allocations: 8 kB / 0.7944 GB, free: 1.707 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.21e-05/0.2655, allocations: 31.98 kB / 0.7944 GB, free: 1.676 MB / 0.6075 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.0001861/0.2657, allocations: 129.7 kB / 0.7946 GB, free: 1.539 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.331e-05/0.2658, allocations: 4 kB / 0.7946 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/0.2686, allocations: 1.388 MB / 0.7959 GB, free: 136 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.737e-06/0.2686, allocations: 7.984 kB / 0.7959 GB, free: 128 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2686, allocations: 3.938 kB / 0.7959 GB, free: 124 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2686, allocations: 0 / 0.7959 GB, free: 124 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002722/0.2713, allocations: 1.807 MB / 0.7977 GB, free: 14.26 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.2714, allocations: 0 / 0.7977 GB, free: 14.26 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007447/0.2721, allocations: 111.8 kB / 0.7978 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.154e-06/0.2721, allocations: 11.97 kB / 0.7978 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.73e-05/0.2722, allocations: 27.94 kB / 0.7978 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.706e-06/0.2722, allocations: 80 / 0.7978 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.2722, allocations: 15.95 kB / 0.7979 GB, free: 14.09 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/0.2744, allocations: 1.45 MB / 0.7993 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 4.16e-05/0.2745, allocations: 96.92 kB / 0.7994 GB, free: 12.51 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.566e-05/0.2746, allocations: 11.94 kB / 0.7994 GB, free: 12.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000504/0.2751, allocations: 12 kB / 0.7994 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.2752, allocations: 39.97 kB / 0.7994 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.079e-05/0.2753, allocations: 36.05 kB / 0.7995 GB, free: 12.41 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 3.166e-05/0.2753, allocations: 75.28 kB / 0.7995 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.643e-06/0.2753, allocations: 0 / 0.7995 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005501/0.2759, allocations: 175.9 kB / 0.7997 GB, free: 12.16 MB / 0.6231 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.002812/0.2787, allocations: 2.119 MB / 0.8018 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001153/0.2799, allocations: 0.7223 MB / 0.8025 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2799, allocations: 0 / 0.8025 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006252/0.2805, allocations: 460 kB / 0.8029 GB, free: 8.844 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.2808, allocations: 16 kB / 0.8029 GB, free: 8.828 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007142/0.288, allocations: 3.702 MB / 0.8065 GB, free: 5.047 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.2883, allocations: 0.7182 MB / 0.8072 GB, free: 4.305 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0009853/0.2893, allocations: 293.5 kB / 0.8075 GB, free: 4.02 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005346/0.2898, allocations: 119.4 kB / 0.8076 GB, free: 3.902 MB / 0.6231 GB Notification: Performance of SimCode: time 7.42e-07/0.2898, allocations: 0 / 0.8076 GB, free: 3.902 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02862/0.3184, allocations: 12.65 MB / 0.82 GB, free: 7.453 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.574/7.892, allocations: 8.047 kB / 0.82 GB, free: 7.445 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)