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.001336/0.001336, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001509/0.001509, allocations: 194.1 kB / 16.14 MB, free: 6.66 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.244/1.244, allocations: 205.1 MB / 222 MB, free: 4.738 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.6/1.6, allocations: 292.3 MB / 0.5484 GB, free: 13.69 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.001266/0.001266, allocations: 70.27 kB / 0.6709 GB, free: 26.55 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1559, allocations: 114.5 MB / 0.7828 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001457/0.1574, allocations: 0.6743 MB / 0.7835 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001233/0.1587, allocations: 1.324 MB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.229e-05/0.1587, allocations: 0 / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.406e-05/0.1587, allocations: 0 / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 1.524e-05/0.1587, allocations: 0 / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002478/0.159, allocations: 51.88 kB / 0.7848 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 4.204e-05/0.159, allocations: 31.86 kB / 0.7848 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.249e-05/0.1591, allocations: 3.984 kB / 0.7848 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.843e-05/0.1591, allocations: 11.94 kB / 0.7849 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.781e-05/0.1591, allocations: 15.97 kB / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.1592, allocations: 0 / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.1593, allocations: 95.84 kB / 0.785 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.39e-05/0.1594, allocations: 7.984 kB / 0.785 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.142e-05/0.1594, allocations: 15.92 kB / 0.785 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.1595, allocations: 59.86 kB / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1595, allocations: 0 / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.91e-07/0.1595, allocations: 0 / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.755e-06/0.1595, allocations: 4 kB / 0.785 GB, free: 11.59 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.0003342/0.1599, allocations: 351.7 kB / 0.7854 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.1599, allocations: 12.03 kB / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.889e-05/0.1599, allocations: 34.75 kB / 0.7854 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.297e-05/0.16, allocations: 4.938 kB / 0.7854 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.597e-05/0.16, allocations: 164.3 kB / 0.7856 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.966e-06/0.1601, allocations: 4.375 kB / 0.7856 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.1601, allocations: 12.36 kB / 0.7856 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.906e-05/0.1602, allocations: 53.81 kB / 0.7857 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.1602, allocations: 0 / 0.7857 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.1602, allocations: 4 kB / 0.7857 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1602, allocations: 4 kB / 0.7857 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.443e-05/0.1603, allocations: 19.98 kB / 0.7857 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001383/0.1604, allocations: 173.5 kB / 0.7858 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 9.81e-05/0.1605, allocations: 58.5 kB / 0.7859 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.785e-05/0.1606, allocations: 32.83 kB / 0.7859 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003736/0.161, allocations: 0.5583 MB / 0.7865 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.161, allocations: 34.5 kB / 0.7865 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.161, allocations: 0 / 0.7865 GB, free: 9.789 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.01806/0.1791, allocations: 4.304 MB / 0.7907 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.295e-05/0.1791, allocations: 51.41 kB / 0.7908 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.504e-05/0.1791, allocations: 101.8 kB / 0.7909 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.984e-05/0.1792, allocations: 25.7 kB / 0.7909 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.218e-05/0.1792, allocations: 80.27 kB / 0.791 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.58e-05/0.1793, allocations: 59.2 kB / 0.791 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/0.1796, allocations: 89.67 kB / 0.7911 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.36e-05/0.1796, allocations: 322.8 kB / 0.7914 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004581/0.1801, allocations: 311.8 kB / 0.7917 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004613/0.1806, allocations: 314.3 kB / 0.792 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.1819, allocations: 0.7546 MB / 0.7927 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.1819, allocations: 0 / 0.7927 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001366/0.1833, allocations: 0.7929 MB / 0.7935 GB, free: 2.406 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/0.1833, allocations: 8 kB / 0.7935 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.1833, allocations: 0 / 0.7935 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.1833, allocations: 3.984 kB / 0.7935 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006849/0.184, allocations: 95.88 kB / 0.7936 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.184, allocations: 0 / 0.7936 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/0.1844, allocations: 8 kB / 0.7936 GB, free: 2.293 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.271e-05/0.1845, allocations: 39.97 kB / 0.7937 GB, free: 2.254 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.000161/0.1847, allocations: 118.4 kB / 0.7938 GB, free: 2.129 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.413e-05/0.1848, allocations: 0 / 0.7938 GB, free: 2.129 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002945/0.1877, allocations: 1.391 MB / 0.7951 GB, free: 0.7266 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.1877, allocations: 4 kB / 0.7951 GB, free: 0.7227 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.1877, allocations: 3.938 kB / 0.7951 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1878, allocations: 7.984 kB / 0.7952 GB, free: 0.7109 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002433/0.1902, allocations: 1.806 MB / 0.7969 GB, free: 14.85 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1902, allocations: 0 / 0.7969 GB, free: 14.85 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006824/0.1909, allocations: 111.8 kB / 0.797 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1909, allocations: 0 / 0.797 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.851e-05/0.191, allocations: 39.95 kB / 0.7971 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.191, allocations: 0 / 0.7971 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.191, allocations: 7.938 kB / 0.7971 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00206/0.1931, allocations: 1.457 MB / 0.7985 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 3.373e-05/0.1931, allocations: 92.97 kB / 0.7986 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.819e-05/0.1932, allocations: 11.94 kB / 0.7986 GB, free: 13.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004359/0.1936, allocations: 12 kB / 0.7986 GB, free: 13.08 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.1938, allocations: 44.03 kB / 0.7986 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.426e-05/0.1939, allocations: 32 kB / 0.7987 GB, free: 13.01 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 2.528e-05/0.1939, allocations: 75.28 kB / 0.7988 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1939, allocations: 0 / 0.7988 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00047/0.1944, allocations: 176 kB / 0.7989 GB, free: 12.76 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.002585/0.197, allocations: 2.123 MB / 0.801 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001071/0.198, allocations: 0.7184 MB / 0.8017 GB, free: 9.891 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.198, allocations: 0 / 0.8017 GB, free: 9.891 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005785/0.1986, allocations: 460 kB / 0.8021 GB, free: 9.441 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.1989, allocations: 14.25 kB / 0.8021 GB, free: 9.43 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006311/0.2052, allocations: 3.766 MB / 0.8058 GB, free: 5.586 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001848/0.2054, allocations: 0.7145 MB / 0.8065 GB, free: 4.848 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00129/0.2067, allocations: 293.5 kB / 0.8068 GB, free: 4.562 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000546/0.2073, allocations: 111.4 kB / 0.8069 GB, free: 4.453 MB / 0.6231 GB Notification: Performance of SimCode: time 2.4e-07/0.2073, allocations: 0 / 0.8069 GB, free: 4.453 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.131/1.338, allocations: 12.03 MB / 0.8187 GB, free: 8.617 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/1.338, allocations: 228.6 kB / 0.8189 GB, free: 8.359 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.778/4.116, allocations: 4 kB / 0.8189 GB, free: 8.355 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)