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.001905/0.001905, allocations: 108 kB / 15.61 MB, free: 152 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.002175/0.002175, allocations: 198.2 kB / 16.54 MB, free: 6.664 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.522/1.522, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.835/2.835, allocations: 469.8 MB / 0.7424 GB, free: 7.406 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 69.34 kB / 0.9087 GB, free: 34.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2639, allocations: 159.1 MB / 1.064 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001702/0.2657, allocations: 0.6228 MB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001585/0.2673, allocations: 1.293 MB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.978e-05/0.2673, allocations: 0 / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.331e-05/0.2673, allocations: 0 / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 1.881e-05/0.2673, allocations: 3.938 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003348/0.2677, allocations: 71.73 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.198e-05/0.2677, allocations: 27.98 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.749e-05/0.2678, allocations: 0 / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.495e-05/0.2678, allocations: 19.91 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.355e-05/0.2679, allocations: 11.98 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.083e-05/0.2679, allocations: 0 / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002104/0.2681, allocations: 95.89 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.817e-05/0.2681, allocations: 11.94 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.88e-05/0.2682, allocations: 15.92 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.2683, allocations: 59.91 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.2683, allocations: 7.938 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2683, allocations: 7.938 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.2683, allocations: 0 / 1.066 GB, free: 11.89 MB / 0.8262 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.0004384/0.2688, allocations: 347.8 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2688, allocations: 8.031 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.511e-05/0.2689, allocations: 34.75 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.851e-05/0.2689, allocations: 12.83 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.269, allocations: 160.4 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.269, allocations: 4.375 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.2691, allocations: 8.375 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001126/0.2692, allocations: 53.8 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.2692, allocations: 0 / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.2692, allocations: 8 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.2692, allocations: 3.984 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.191e-05/0.2693, allocations: 23.92 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000178/0.2695, allocations: 161.7 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.2696, allocations: 62.56 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.342e-05/0.2697, allocations: 24.84 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005345/0.2702, allocations: 0.5583 MB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.2702, allocations: 38.5 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.273e-06/0.2702, allocations: 0 / 1.068 GB, free: 10.1 MB / 0.8262 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.02134/0.2916, allocations: 4.38 MB / 1.072 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.2917, allocations: 55.41 kB / 1.072 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.364e-05/0.2917, allocations: 97.84 kB / 1.072 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.163e-05/0.2918, allocations: 29.83 kB / 1.072 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.342e-05/0.2919, allocations: 84.14 kB / 1.072 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.292, allocations: 51.2 kB / 1.072 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002629/0.2922, allocations: 93.67 kB / 1.072 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2924, allocations: 318.8 kB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005713/0.293, allocations: 315.8 kB / 1.073 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005658/0.2935, allocations: 311.9 kB / 1.073 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001667/0.2952, allocations: 0.7677 MB / 1.074 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.2952, allocations: 0 / 1.074 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001674/0.2969, allocations: 0.8077 MB / 1.075 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.2969, allocations: 7.984 kB / 1.075 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.2969, allocations: 0 / 1.075 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.297, allocations: 4 kB / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008762/0.2978, allocations: 87.95 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2979, allocations: 0 / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000561/0.2984, allocations: 4 kB / 1.075 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.405e-05/0.2985, allocations: 39.97 kB / 1.075 GB, free: 2.465 MB / 0.8262 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.0001931/0.2987, allocations: 121.7 kB / 1.075 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.921e-05/0.2988, allocations: 8 kB / 1.075 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003498/0.3023, allocations: 1.395 MB / 1.076 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.3023, allocations: 7.938 kB / 1.076 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.3023, allocations: 0 / 1.076 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.872e-06/0.3023, allocations: 3.984 kB / 1.076 GB, free: 0.918 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003079/0.3054, allocations: 1.813 MB / 1.078 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.3055, allocations: 4 kB / 1.078 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008379/0.3063, allocations: 107.9 kB / 1.078 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.3063, allocations: 4.031 kB / 1.078 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.817e-05/0.3064, allocations: 43.86 kB / 1.078 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.3064, allocations: 0 / 1.078 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3064, allocations: 0 / 1.078 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002519/0.3089, allocations: 1.461 MB / 1.08 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.564e-05/0.309, allocations: 96.97 kB / 1.08 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.675e-05/0.3091, allocations: 7.938 kB / 1.08 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005577/0.3097, allocations: 20.06 kB / 1.08 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.3098, allocations: 39.95 kB / 1.08 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.098e-05/0.3099, allocations: 35.94 kB / 1.08 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.973e-05/0.31, allocations: 79.27 kB / 1.08 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.31, allocations: 0 / 1.08 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005824/0.3106, allocations: 180 kB / 1.08 GB, free: 12.93 MB / 0.8419 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.003207/0.3138, allocations: 2.131 MB / 1.082 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001411/0.3152, allocations: 0.7423 MB / 1.083 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3152, allocations: 0 / 1.083 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007148/0.3159, allocations: 451.8 kB / 1.084 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.3163, allocations: 16 kB / 1.084 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00812/0.3244, allocations: 3.704 MB / 1.087 GB, free: 5.793 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.3247, allocations: 0.7258 MB / 1.088 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.00156/0.3263, allocations: 289.5 kB / 1.088 GB, free: 4.754 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005798/0.3269, allocations: 123.4 kB / 1.088 GB, free: 4.633 MB / 0.8419 GB Notification: Performance of SimCode: time 5.91e-07/0.3269, allocations: 0 / 1.088 GB, free: 4.633 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0387/0.3656, allocations: 12.67 MB / 1.101 GB, free: 8.137 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.746/8.112, allocations: 11.94 kB / 1.101 GB, free: 8.125 MB / 0.8575 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)