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.001308/0.001312, 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.00148/0.00148, allocations: 197.3 kB / 16.54 MB, free: 6.672 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.288/1.288, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001989/0.001989, allocations: 283 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8989/0.8989, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001769, allocations: 106.9 kB / 0.5954 GB, free: 27.73 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.161, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001888/0.1629, allocations: 0.6022 MB / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.1645, allocations: 1.284 MB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.483e-05/0.1646, allocations: 0.5312 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.334e-05/0.1646, allocations: 0.9375 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.278e-05/0.1647, allocations: 3.938 kB / 0.6822 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003771/0.165, allocations: 80.8 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.937e-05/0.1651, allocations: 23.97 kB / 0.6822 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.078e-05/0.1651, allocations: 8.281 kB / 0.6823 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.212e-05/0.1652, allocations: 12 kB / 0.6823 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.967e-05/0.1652, allocations: 15.92 kB / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.321e-05/0.1653, allocations: 0 / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000211/0.1655, allocations: 99.88 kB / 0.6824 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.734e-05/0.1655, allocations: 8 kB / 0.6824 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.618e-05/0.1655, allocations: 11.91 kB / 0.6824 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.1657, allocations: 67.86 kB / 0.6825 GB, free: 14.36 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-05/0.1657, allocations: 0 / 0.6825 GB, free: 14.36 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1657, allocations: 3.938 kB / 0.6825 GB, free: 14.36 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.1657, allocations: 4 kB / 0.6825 GB, free: 14.36 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.0004068/0.1661, allocations: 351.5 kB / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.1662, allocations: 11.97 kB / 0.6828 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.281e-05/0.1662, allocations: 34.75 kB / 0.6829 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.032e-05/0.1663, allocations: 8.844 kB / 0.6829 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.1664, allocations: 164.4 kB / 0.683 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.1664, allocations: 4.375 kB / 0.683 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.1664, allocations: 384 / 0.683 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.1666, allocations: 57.81 kB / 0.6831 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.1666, allocations: 0 / 0.6831 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.1666, allocations: 4 kB / 0.6831 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1666, allocations: 0 / 0.6831 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.118e-05/0.1667, allocations: 31.91 kB / 0.6831 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001734/0.1669, allocations: 161.7 kB / 0.6833 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/0.167, allocations: 58.56 kB / 0.6833 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.127e-05/0.167, allocations: 24.84 kB / 0.6833 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005102/0.1676, allocations: 0.5583 MB / 0.6839 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.1676, allocations: 42.5 kB / 0.6839 GB, free: 12.56 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 2.716e-06/0.1676, allocations: 3.984 kB / 0.6839 GB, free: 12.56 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.02001/0.1876, allocations: 4.394 MB / 0.6882 GB, free: 8.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.1877, allocations: 51.41 kB / 0.6883 GB, free: 7.957 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.92e-05/0.1878, allocations: 89.86 kB / 0.6884 GB, free: 7.859 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.896e-05/0.1878, allocations: 33.7 kB / 0.6884 GB, free: 7.82 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.838e-05/0.1879, allocations: 84.25 kB / 0.6885 GB, free: 7.734 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.188, allocations: 51.27 kB / 0.6885 GB, free: 7.684 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/0.1882, allocations: 89.67 kB / 0.6886 GB, free: 7.59 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1883, allocations: 326.8 kB / 0.6889 GB, free: 7.262 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005109/0.1889, allocations: 307.8 kB / 0.6892 GB, free: 6.961 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005183/0.1894, allocations: 311.9 kB / 0.6895 GB, free: 6.656 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.1909, allocations: 0.7683 MB / 0.6903 GB, free: 5.887 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1909, allocations: 0 / 0.6903 GB, free: 5.887 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001533/0.1924, allocations: 0.8019 MB / 0.691 GB, free: 5.078 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.1925, allocations: 10.66 kB / 0.6911 GB, free: 5.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.1925, allocations: 4 kB / 0.6911 GB, free: 5.066 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.1925, allocations: 0 / 0.6911 GB, free: 5.066 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000862/0.1934, allocations: 95.94 kB / 0.6911 GB, free: 4.973 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.1934, allocations: 0 / 0.6911 GB, free: 4.973 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005504/0.194, allocations: 8 kB / 0.6912 GB, free: 4.965 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.173e-05/0.194, allocations: 31.97 kB / 0.6912 GB, free: 4.934 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.0002146/0.1943, allocations: 127 kB / 0.6913 GB, free: 4.801 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-05/0.1944, allocations: 4 kB / 0.6913 GB, free: 4.797 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003272/0.1976, allocations: 1.399 MB / 0.6927 GB, free: 3.391 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1976, allocations: 4 kB / 0.6927 GB, free: 3.387 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1977, allocations: 8 kB / 0.6927 GB, free: 3.379 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.1977, allocations: 3.984 kB / 0.6927 GB, free: 3.375 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002838/0.2005, allocations: 1.817 MB / 0.6945 GB, free: 1.504 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2005, allocations: 0 / 0.6945 GB, free: 1.504 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007934/0.2013, allocations: 107.9 kB / 0.6946 GB, free: 1.398 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.2013, allocations: 0 / 0.6946 GB, free: 1.398 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-05/0.2014, allocations: 39.91 kB / 0.6946 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.2014, allocations: 0 / 0.6946 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.2014, allocations: 5.016 kB / 0.6946 GB, free: 1.355 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002279/0.2037, allocations: 1.469 MB / 0.696 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.297e-05/0.2038, allocations: 88.95 kB / 0.6961 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.022e-05/0.2039, allocations: 7.938 kB / 0.6961 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005351/0.2044, allocations: 19.92 kB / 0.6962 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.2046, allocations: 48.03 kB / 0.6962 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-05/0.2046, allocations: 28 kB / 0.6962 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.714e-05/0.2047, allocations: 75.28 kB / 0.6963 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2047, allocations: 4 kB / 0.6963 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005763/0.2053, allocations: 176 kB / 0.6965 GB, free: 15.41 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.003068/0.2084, allocations: 2.139 MB / 0.6986 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001356/0.2097, allocations: 0.7456 MB / 0.6993 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2097, allocations: 0 / 0.6993 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006489/0.2104, allocations: 447.8 kB / 0.6997 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.2107, allocations: 15.98 kB / 0.6997 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007589/0.2183, allocations: 3.705 MB / 0.7034 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.2186, allocations: 0.7142 MB / 0.704 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00141/0.22, allocations: 297.5 kB / 0.7043 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005467/0.2206, allocations: 111.4 kB / 0.7044 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of SimCode: time 5.82e-07/0.2206, allocations: 0 / 0.7044 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04082/0.2614, allocations: 12.69 MB / 0.7168 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.967/8.228, allocations: 10.86 kB / 0.7168 GB, free: 10.62 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)