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.0008607/0.0008606, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005014/0.005014, allocations: 172.8 kB / 16.27 MB, free: 6.652 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.245/1.245, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001881/0.001881, allocations: 278.1 kB / 291.7 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9191/0.9191, allocations: 169.5 MB / 0.5004 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004262/0.0004262, allocations: 17.25 kB / 0.5988 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1552, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0007464/0.156, allocations: 345.9 kB / 0.6856 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.1575, allocations: 1.274 MB / 0.6868 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.352e-05/0.1575, allocations: 2.281 kB / 0.6868 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.337e-05/0.1576, allocations: 0 / 0.6868 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.909e-05/0.1576, allocations: 0 / 0.6868 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.1579, allocations: 63.8 kB / 0.6869 GB, free: 13.29 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.728e-05/0.1579, allocations: 27.36 kB / 0.6869 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.2e-05/0.158, allocations: 288 / 0.6869 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.97e-05/0.158, allocations: 4 kB / 0.6869 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.491e-05/0.1581, allocations: 27.84 kB / 0.6869 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.1581, allocations: 0 / 0.6869 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001978/0.1583, allocations: 99.89 kB / 0.687 GB, free: 13.13 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.294e-05/0.1583, allocations: 7.984 kB / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.448e-05/0.1584, allocations: 41.62 kB / 0.6871 GB, free: 13.08 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.1585, allocations: 63.86 kB / 0.6871 GB, free: 13.02 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1585, allocations: 0.6875 kB / 0.6871 GB, free: 13.02 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1585, allocations: 0 / 0.6871 GB, free: 13.02 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.586e-06/0.1585, allocations: 0.5 kB / 0.6871 GB, free: 13.02 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.0004103/0.1589, allocations: 346.6 kB / 0.6875 GB, free: 12.63 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.159, allocations: 12.03 kB / 0.6875 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.396e-05/0.159, allocations: 38.62 kB / 0.6875 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.065e-05/0.1591, allocations: 8.844 kB / 0.6875 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.1592, allocations: 160.4 kB / 0.6877 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.1592, allocations: 4.375 kB / 0.6877 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.24e-05/0.1592, allocations: 5.125 kB / 0.6877 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001389/0.1594, allocations: 65.09 kB / 0.6877 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1594, allocations: 0 / 0.6877 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.1594, allocations: 0 / 0.6877 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1594, allocations: 4 kB / 0.6878 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.407e-05/0.1595, allocations: 19.98 kB / 0.6878 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000172/0.1597, allocations: 173.6 kB / 0.6879 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.1598, allocations: 55.34 kB / 0.688 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.648e-05/0.1598, allocations: 24.86 kB / 0.688 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004773/0.1603, allocations: 0.5644 MB / 0.6886 GB, free: 11.27 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.1604, allocations: 35.84 kB / 0.6886 GB, free: 11.23 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.1604, allocations: 0 / 0.6886 GB, free: 11.23 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.01919/0.1796, allocations: 4.29 MB / 0.6928 GB, free: 6.801 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.1796, allocations: 51.41 kB / 0.6928 GB, free: 6.738 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.401e-05/0.1797, allocations: 97.8 kB / 0.6929 GB, free: 6.633 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.285e-05/0.1798, allocations: 25.7 kB / 0.693 GB, free: 6.602 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.404e-05/0.1798, allocations: 84.14 kB / 0.693 GB, free: 6.516 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.1799, allocations: 59.31 kB / 0.6931 GB, free: 6.457 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.66e-05/0.1801, allocations: 25.66 kB / 0.6931 GB, free: 6.426 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.1802, allocations: 322.7 kB / 0.6934 GB, free: 6.102 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005088/0.1807, allocations: 311.9 kB / 0.6937 GB, free: 5.797 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005144/0.1813, allocations: 311.8 kB / 0.694 GB, free: 5.492 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/0.1828, allocations: 0.7722 MB / 0.6948 GB, free: 4.719 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.1828, allocations: 0 / 0.6948 GB, free: 4.719 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001623/0.1844, allocations: 0.7943 MB / 0.6955 GB, free: 3.918 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.136e-05/0.1844, allocations: 4 kB / 0.6956 GB, free: 3.914 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.1845, allocations: 4 kB / 0.6956 GB, free: 3.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.1845, allocations: 0 / 0.6956 GB, free: 3.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009239/0.1854, allocations: 99.88 kB / 0.6957 GB, free: 3.812 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/0.1854, allocations: 0.5469 kB / 0.6957 GB, free: 3.812 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005272/0.186, allocations: 4 kB / 0.6957 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.044e-05/0.1861, allocations: 39.97 kB / 0.6957 GB, free: 3.77 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.0002371/0.1863, allocations: 119.1 kB / 0.6958 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.185e-05/0.1864, allocations: 7.906 kB / 0.6958 GB, free: 3.637 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00371/0.1901, allocations: 1.403 MB / 0.6972 GB, free: 2.223 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.1901, allocations: 4 kB / 0.6972 GB, free: 2.219 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1902, allocations: 0 / 0.6972 GB, free: 2.219 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.1902, allocations: 3.984 kB / 0.6972 GB, free: 2.215 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.193, allocations: 1.817 MB / 0.699 GB, free: 352 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.193, allocations: 4.031 kB / 0.699 GB, free: 348 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008049/0.1938, allocations: 107.9 kB / 0.6991 GB, free: 240 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.543e-06/0.1939, allocations: 0 / 0.6991 GB, free: 240 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.565e-05/0.1939, allocations: 27.94 kB / 0.6991 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.944e-06/0.194, allocations: 11.98 kB / 0.6991 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.194, allocations: 0 / 0.6991 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.1963, allocations: 1.469 MB / 0.7005 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.079e-05/0.1963, allocations: 96.95 kB / 0.7006 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.582e-05/0.1964, allocations: 11.94 kB / 0.7007 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005284/0.1969, allocations: 16 kB / 0.7007 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.1971, allocations: 39.95 kB / 0.7007 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.748e-05/0.1972, allocations: 32 kB / 0.7007 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.628e-05/0.1972, allocations: 75.28 kB / 0.7008 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1972, allocations: 0 / 0.7008 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005816/0.1978, allocations: 180 kB / 0.701 GB, free: 14.24 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.002911/0.2007, allocations: 2.138 MB / 0.7031 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001163/0.2019, allocations: 0.7281 MB / 0.7038 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.2019, allocations: 0 / 0.7038 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006095/0.2025, allocations: 451.8 kB / 0.7042 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.2028, allocations: 18.23 kB / 0.7042 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007301/0.2102, allocations: 3.76 MB / 0.7079 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.2104, allocations: 0.7224 MB / 0.7086 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001356/0.2118, allocations: 293.5 kB / 0.7089 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000558/0.2124, allocations: 111.4 kB / 0.709 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of SimCode: time 7.91e-07/0.2124, allocations: 4 kB / 0.709 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02346/0.2358, allocations: 11.95 MB / 0.7207 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.2361, allocations: 240.4 kB / 0.7209 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/2.025, allocations: 2.672 kB / 0.7209 GB, free: 9.953 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)