Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_9_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.005128/0.005128, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001238/0.001238, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.448/2.448, allocations: 390.3 MB / 0.6648 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.00119, allocations: 63.72 kB / 0.9504 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2518, allocations: 140.4 MB / 1.088 GB, free: 1.926 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001619/0.2534, allocations: 0.618 MB / 1.088 GB, free: 1.312 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001554/0.255, allocations: 1.289 MB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.536e-05/0.2551, allocations: 4 kB / 1.089 GB, free: 4 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.573e-05/0.2551, allocations: 0 / 1.089 GB, free: 4 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.11e-05/0.2551, allocations: 3.938 kB / 1.089 GB, free: 0 / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003996/0.2555, allocations: 75.83 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.389e-05/0.2556, allocations: 19.98 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.847e-05/0.2556, allocations: 4 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.218e-05/0.2557, allocations: 11.83 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.358e-05/0.2557, allocations: 15.97 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.2558, allocations: 4 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002197/0.256, allocations: 99.89 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.525e-05/0.256, allocations: 7.922 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.138e-05/0.256, allocations: 15.92 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.2562, allocations: 63.86 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2562, allocations: 4 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2562, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.854e-06/0.2562, allocations: 3.938 kB / 1.09 GB, free: 15.68 MB / 0.8575 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.0004233/0.2567, allocations: 346.4 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.2567, allocations: 12.03 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.236e-05/0.2567, allocations: 38.75 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.037e-05/0.2568, allocations: 4.844 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.962e-05/0.2569, allocations: 172.3 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.2569, allocations: 384 / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.607e-05/0.2569, allocations: 4.375 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.2571, allocations: 53.81 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.2571, allocations: 0 / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.2571, allocations: 0 / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2571, allocations: 3.984 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.651e-05/0.2572, allocations: 31.98 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001611/0.2573, allocations: 162.2 kB / 1.09 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.2575, allocations: 62.48 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.733e-05/0.2575, allocations: 28.84 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004501/0.258, allocations: 0.5583 MB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.258, allocations: 42.48 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.258, allocations: 0 / 1.091 GB, free: 13.88 MB / 0.8575 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.02032/0.2783, allocations: 4.366 MB / 1.095 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.2784, allocations: 51.41 kB / 1.095 GB, free: 9.297 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.447e-05/0.2785, allocations: 101.8 kB / 1.096 GB, free: 9.188 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.711e-05/0.2785, allocations: 29.7 kB / 1.096 GB, free: 9.152 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.507e-05/0.2786, allocations: 80.14 kB / 1.096 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.2787, allocations: 55.2 kB / 1.096 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/0.2789, allocations: 93.61 kB / 1.096 GB, free: 8.918 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.663e-05/0.279, allocations: 322.8 kB / 1.096 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005102/0.2795, allocations: 312 kB / 1.096 GB, free: 8.289 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005018/0.2801, allocations: 311.8 kB / 1.097 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.2816, allocations: 0.7717 MB / 1.097 GB, free: 7.211 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.2816, allocations: 0 / 1.097 GB, free: 7.211 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001538/0.2831, allocations: 0.8001 MB / 1.098 GB, free: 6.406 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.2831, allocations: 4 kB / 1.098 GB, free: 6.402 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2832, allocations: 0 / 1.098 GB, free: 6.402 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.2832, allocations: 0 / 1.098 GB, free: 6.402 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008735/0.2841, allocations: 99.88 kB / 1.098 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.2841, allocations: 4 kB / 1.098 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005772/0.2847, allocations: 8 kB / 1.098 GB, free: 6.293 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-05/0.2848, allocations: 35.97 kB / 1.098 GB, free: 6.258 MB / 0.8575 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.0001926/0.2849, allocations: 121.8 kB / 1.099 GB, free: 6.129 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.601e-05/0.285, allocations: 4 kB / 1.099 GB, free: 6.125 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003206/0.2883, allocations: 1.399 MB / 1.1 GB, free: 4.715 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.2883, allocations: 4 kB / 1.1 GB, free: 4.711 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2883, allocations: 0 / 1.1 GB, free: 4.711 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.2883, allocations: 3.984 kB / 1.1 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00287/0.2912, allocations: 1.818 MB / 1.102 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.2912, allocations: 0 / 1.102 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008436/0.292, allocations: 107.9 kB / 1.102 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.2921, allocations: 8.031 kB / 1.102 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.243e-05/0.2922, allocations: 27.94 kB / 1.102 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.524e-06/0.2922, allocations: 7.984 kB / 1.102 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2922, allocations: 0 / 1.102 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002346/0.2945, allocations: 1.466 MB / 1.103 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.695e-05/0.2946, allocations: 85.05 kB / 1.103 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.292e-05/0.2947, allocations: 15.92 kB / 1.103 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005456/0.2952, allocations: 12.06 kB / 1.103 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.2954, allocations: 47.91 kB / 1.103 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.401e-05/0.2955, allocations: 32 kB / 1.103 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.008e-05/0.2955, allocations: 79.22 kB / 1.104 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.2955, allocations: 0 / 1.104 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005976/0.2961, allocations: 180 kB / 1.104 GB, free: 0.7344 MB / 0.8575 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.003149/0.2993, allocations: 2.135 MB / 1.106 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001351/0.3006, allocations: 0.7303 MB / 1.106 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3007, allocations: 0 / 1.106 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006547/0.3013, allocations: 455.7 kB / 1.107 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.3017, allocations: 12 kB / 1.107 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007752/0.3094, allocations: 3.718 MB / 1.111 GB, free: 9.582 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.3097, allocations: 0.7181 MB / 1.111 GB, free: 8.836 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.001014/0.3107, allocations: 294.5 kB / 1.112 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005884/0.3113, allocations: 111.4 kB / 1.112 GB, free: 8.438 MB / 0.8731 GB Notification: Performance of SimCode: time 4.91e-07/0.3114, allocations: 0 / 1.112 GB, free: 8.438 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0335/0.3449, allocations: 12.72 MB / 1.124 GB, free: 11.86 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.432/7.777, allocations: 19.42 kB / 1.124 GB, free: 11.84 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)