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.000948/0.000948, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009762/0.0009762, allocations: 194.4 kB / 16.25 MB, free: 6.625 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.132/1.132, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.663/1.663, allocations: 292.3 MB / 0.5486 GB, free: 13.62 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.00135/0.00135, allocations: 65.47 kB / 0.6711 GB, free: 26.41 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2011/0.2025, allocations: 114.6 MB / 0.783 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001801/0.2043, allocations: 0.6743 MB / 0.7837 GB, free: 13.1 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001516/0.2059, allocations: 1.312 MB / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.85e-05/0.2059, allocations: 0 / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.311e-05/0.2059, allocations: 0 / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.189e-05/0.206, allocations: 0 / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003752/0.2064, allocations: 59.88 kB / 0.785 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 4.737e-05/0.2064, allocations: 23.98 kB / 0.785 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.754e-05/0.2065, allocations: 7.984 kB / 0.785 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.151e-05/0.2065, allocations: 11.94 kB / 0.785 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.292e-05/0.2066, allocations: 11.97 kB / 0.785 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.31e-05/0.2066, allocations: 4 kB / 0.785 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.2068, allocations: 95.78 kB / 0.7851 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.436e-05/0.2068, allocations: 11.98 kB / 0.7851 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.328e-05/0.2068, allocations: 15.92 kB / 0.7852 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000119/0.2069, allocations: 59.86 kB / 0.7852 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2069, allocations: 3.938 kB / 0.7852 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.533e-06/0.207, allocations: 4 kB / 0.7852 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.207, allocations: 0 / 0.7852 GB, free: 11.46 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.0004014/0.2074, allocations: 351.7 kB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2074, allocations: 12.03 kB / 0.7856 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.252e-05/0.2075, allocations: 34.75 kB / 0.7856 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.495e-05/0.2075, allocations: 0.9375 kB / 0.7856 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.397e-05/0.2076, allocations: 164.4 kB / 0.7858 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.2076, allocations: 384 / 0.7858 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.2076, allocations: 16.36 kB / 0.7858 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.2077, allocations: 53.75 kB / 0.7858 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.2078, allocations: 4 kB / 0.7858 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.684e-06/0.2078, allocations: 0 / 0.7858 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.2078, allocations: 0 / 0.7858 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.799e-05/0.2078, allocations: 27.97 kB / 0.7859 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001645/0.208, allocations: 169.6 kB / 0.786 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001063/0.2081, allocations: 54.56 kB / 0.7861 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.174e-05/0.2082, allocations: 36.78 kB / 0.7861 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004296/0.2086, allocations: 0.5583 MB / 0.7867 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.2087, allocations: 34.5 kB / 0.7867 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.2087, allocations: 0 / 0.7867 GB, free: 9.668 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.0193/0.228, allocations: 4.308 MB / 0.7909 GB, free: 5.207 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.228, allocations: 55.41 kB / 0.791 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.978e-05/0.2281, allocations: 97.84 kB / 0.791 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.956e-05/0.2282, allocations: 29.7 kB / 0.7911 GB, free: 5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.678e-05/0.2283, allocations: 84.27 kB / 0.7912 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.2284, allocations: 55.19 kB / 0.7912 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002318/0.2286, allocations: 93.67 kB / 0.7913 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.053e-05/0.2287, allocations: 322.8 kB / 0.7916 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004771/0.2292, allocations: 311.8 kB / 0.7919 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004618/0.2297, allocations: 311 kB / 0.7922 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.231, allocations: 0.7584 MB / 0.7929 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.231, allocations: 0 / 0.7929 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001368/0.2324, allocations: 0.7903 MB / 0.7937 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.2324, allocations: 10.66 kB / 0.7937 GB, free: 2.266 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2324, allocations: 0 / 0.7937 GB, free: 2.266 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.2325, allocations: 3.984 kB / 0.7937 GB, free: 2.262 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007511/0.2332, allocations: 87.95 kB / 0.7938 GB, free: 2.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.2332, allocations: 0 / 0.7938 GB, free: 2.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004768/0.2337, allocations: 11.94 kB / 0.7938 GB, free: 2.164 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.477e-05/0.2338, allocations: 39.97 kB / 0.7939 GB, free: 2.125 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.0001749/0.234, allocations: 113.8 kB / 0.794 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.813e-05/0.2341, allocations: 8 kB / 0.794 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003073/0.2372, allocations: 1.387 MB / 0.7953 GB, free: 0.5977 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.2372, allocations: 4 kB / 0.7953 GB, free: 0.5938 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2372, allocations: 3.938 kB / 0.7953 GB, free: 0.5898 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.2372, allocations: 3.984 kB / 0.7953 GB, free: 0.5859 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/0.2398, allocations: 1.81 MB / 0.7971 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2398, allocations: 0 / 0.7971 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007259/0.2406, allocations: 103.9 kB / 0.7972 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.2406, allocations: 8.031 kB / 0.7972 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.622e-05/0.2407, allocations: 31.92 kB / 0.7972 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.2407, allocations: 4 kB / 0.7972 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2407, allocations: 3.938 kB / 0.7973 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002116/0.2428, allocations: 1.453 MB / 0.7987 GB, free: 13.1 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 3.956e-05/0.2428, allocations: 96.91 kB / 0.7988 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.009e-05/0.2429, allocations: 11.94 kB / 0.7988 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000468/0.2434, allocations: 16.06 kB / 0.7988 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.2436, allocations: 43.91 kB / 0.7988 GB, free: 12.91 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.028e-05/0.2436, allocations: 28 kB / 0.7989 GB, free: 12.89 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 3.463e-05/0.2437, allocations: 83.27 kB / 0.7989 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.01e-07/0.2437, allocations: 0 / 0.7989 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005139/0.2442, allocations: 168 kB / 0.7991 GB, free: 12.64 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.002709/0.2469, allocations: 2.12 MB / 0.8012 GB, free: 10.49 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001185/0.2481, allocations: 0.7456 MB / 0.8019 GB, free: 9.746 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2481, allocations: 0 / 0.8019 GB, free: 9.746 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005847/0.2487, allocations: 448 kB / 0.8023 GB, free: 9.309 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.249, allocations: 23.98 kB / 0.8023 GB, free: 9.285 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006682/0.2557, allocations: 3.746 MB / 0.806 GB, free: 5.457 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.256, allocations: 0.7219 MB / 0.8067 GB, free: 4.711 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001356/0.2574, allocations: 294.5 kB / 0.807 GB, free: 4.426 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005547/0.2579, allocations: 119.3 kB / 0.8071 GB, free: 4.309 MB / 0.6231 GB Notification: Performance of SimCode: time 5.41e-07/0.2579, allocations: 4 kB / 0.8071 GB, free: 4.305 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.19/1.448, allocations: 12.56 MB / 0.8194 GB, free: 7.953 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000283/1.449, allocations: 228.8 kB / 0.8196 GB, free: 7.695 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.152/3.601, allocations: 0 / 0.8196 GB, free: 7.695 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)