Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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.001041/0.001041, allocations: 108 kB / 15.6 MB, free: 132 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.001126/0.001127, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.276/1.276, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00219/0.00219, allocations: 287 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9095/0.9095, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 105.8 kB / 0.5954 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1386, allocations: 86.98 MB / 0.6803 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001727/0.1404, allocations: 0.6036 MB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.1418, allocations: 1.281 MB / 0.6821 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.593e-05/0.1418, allocations: 4 kB / 0.6821 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.3e-05/0.1419, allocations: 1.781 kB / 0.6821 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.567e-05/0.1419, allocations: 0 / 0.6821 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003481/0.1423, allocations: 75.72 kB / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.715e-05/0.1423, allocations: 28.61 kB / 0.6822 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.812e-05/0.1424, allocations: 8.281 kB / 0.6822 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.981e-05/0.1424, allocations: 8.656 kB / 0.6823 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.397e-05/0.1424, allocations: 15.91 kB / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.03e-05/0.1425, allocations: 2.469 kB / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001983/0.1427, allocations: 103.9 kB / 0.6824 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.16e-05/0.1427, allocations: 0 / 0.6824 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.493e-05/0.1427, allocations: 19.91 kB / 0.6824 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.1428, allocations: 63.86 kB / 0.6825 GB, free: 14.33 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.1428, allocations: 0 / 0.6825 GB, free: 14.33 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1429, allocations: 2.062 kB / 0.6825 GB, free: 14.33 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.1429, allocations: 0 / 0.6825 GB, free: 14.33 MB / 494.1 MB 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.0003742/0.1432, allocations: 351.5 kB / 0.6828 GB, free: 13.94 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.1433, allocations: 8.031 kB / 0.6828 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.736e-05/0.1433, allocations: 43.31 kB / 0.6828 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.725e-05/0.1434, allocations: 6.562 kB / 0.6828 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.556e-05/0.1434, allocations: 168.3 kB / 0.683 GB, free: 13.67 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.1435, allocations: 4.375 kB / 0.683 GB, free: 13.67 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.1435, allocations: 4.375 kB / 0.683 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/0.1436, allocations: 50.69 kB / 0.6831 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1436, allocations: 4 kB / 0.6831 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.1436, allocations: 0.7188 kB / 0.6831 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.1436, allocations: 0 / 0.6831 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.015e-05/0.1437, allocations: 33.25 kB / 0.6831 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001447/0.1439, allocations: 165.7 kB / 0.6833 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.746e-05/0.144, allocations: 67.19 kB / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.366e-05/0.144, allocations: 29.47 kB / 0.6834 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004179/0.1444, allocations: 0.5583 MB / 0.6839 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.1445, allocations: 34.5 kB / 0.6839 GB, free: 12.53 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.103e-06/0.1445, allocations: 0 / 0.6839 GB, free: 12.53 MB / 494.1 MB 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.01971/0.1642, allocations: 4.383 MB / 0.6882 GB, free: 8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.614e-05/0.1643, allocations: 55.34 kB / 0.6883 GB, free: 7.934 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.1644, allocations: 97.84 kB / 0.6884 GB, free: 7.828 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 8.101e-05/0.1645, allocations: 29.7 kB / 0.6884 GB, free: 7.793 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.843e-05/0.1646, allocations: 80.14 kB / 0.6885 GB, free: 7.711 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.1647, allocations: 55.39 kB / 0.6885 GB, free: 7.656 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002562/0.165, allocations: 85.67 kB / 0.6886 GB, free: 7.566 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1651, allocations: 326.8 kB / 0.6889 GB, free: 7.238 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005294/0.1657, allocations: 307.8 kB / 0.6892 GB, free: 6.938 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005109/0.1662, allocations: 315.8 kB / 0.6895 GB, free: 6.629 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.1677, allocations: 0.7723 MB / 0.6903 GB, free: 5.855 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.1677, allocations: 0 / 0.6903 GB, free: 5.855 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001506/0.1692, allocations: 0.7981 MB / 0.691 GB, free: 5.051 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.1692, allocations: 4 kB / 0.691 GB, free: 5.047 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.1692, allocations: 4 kB / 0.691 GB, free: 5.043 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.1693, allocations: 0 / 0.691 GB, free: 5.043 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008605/0.1701, allocations: 95.88 kB / 0.6911 GB, free: 4.949 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.1701, allocations: 0 / 0.6911 GB, free: 4.949 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000542/0.1707, allocations: 12 kB / 0.6911 GB, free: 4.938 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-05/0.1708, allocations: 36.52 kB / 0.6912 GB, free: 4.902 MB / 494.1 MB 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.0001772/0.171, allocations: 123.1 kB / 0.6913 GB, free: 4.773 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.966e-05/0.171, allocations: 0 / 0.6913 GB, free: 4.773 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003032/0.1741, allocations: 1.407 MB / 0.6927 GB, free: 3.359 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.1741, allocations: 4 kB / 0.6927 GB, free: 3.355 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.1741, allocations: 3.938 kB / 0.6927 GB, free: 3.352 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.1741, allocations: 3.984 kB / 0.6927 GB, free: 3.348 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/0.1768, allocations: 1.821 MB / 0.6945 GB, free: 1.473 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1768, allocations: 0 / 0.6945 GB, free: 1.473 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007969/0.1776, allocations: 107.9 kB / 0.6946 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.1776, allocations: 4 kB / 0.6946 GB, free: 1.363 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.736e-05/0.1777, allocations: 27.94 kB / 0.6946 GB, free: 1.336 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.1777, allocations: 12.02 kB / 0.6946 GB, free: 1.324 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.1777, allocations: 3.984 kB / 0.6946 GB, free: 1.32 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.18, allocations: 1.469 MB / 0.696 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.18, allocations: 88.98 kB / 0.6961 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.576e-05/0.1801, allocations: 15.92 kB / 0.6961 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005293/0.1806, allocations: 8 kB / 0.6962 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.1808, allocations: 48.03 kB / 0.6962 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.381e-05/0.1809, allocations: 35.98 kB / 0.6962 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.843e-05/0.1809, allocations: 75.28 kB / 0.6963 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.1809, allocations: 0 / 0.6963 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005395/0.1815, allocations: 180 kB / 0.6965 GB, free: 15.37 MB / 0.4981 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.002765/0.1842, allocations: 2.135 MB / 0.6986 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001231/0.1855, allocations: 0.7439 MB / 0.6993 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1855, allocations: 4 kB / 0.6993 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006194/0.1861, allocations: 451.7 kB / 0.6997 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.1864, allocations: 16 kB / 0.6997 GB, free: 12 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007256/0.1937, allocations: 3.709 MB / 0.7034 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002195/0.1939, allocations: 0.7103 MB / 0.7041 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001339/0.1953, allocations: 297.5 kB / 0.7043 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000562/0.1959, allocations: 115.4 kB / 0.7044 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of SimCode: time 6.21e-07/0.1959, allocations: 0 / 0.7044 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03201/0.2279, allocations: 12.69 MB / 0.7168 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.201/7.429, allocations: 13.5 kB / 0.7169 GB, free: 10.59 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)