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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8003/0.8003, allocations: 143.3 MB / 158.3 MB, free: 5.77 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 185 kB / 191.5 MB, free: 5.75 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 223.2 MB / 447.7 MB, free: 4.82 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009104/0.0009105, allocations: 84.34 kB / 0.5187 GB, free: 1.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002011/0.002011, allocations: 259.4 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004816/0.0004816, allocations: 18.12 kB / 0.6929 GB, free: 59.54 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1457, allocations: 82.8 MB / 0.7738 GB, free: 13.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1744/0.3201, allocations: 109.2 MB / 0.8804 GB, free: 408 kB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000453/0.3207, allocations: 75.95 kB / 0.8805 GB, free: 332 kB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.3279/0.6486, allocations: 2.392 MB / 0.8829 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.214e-06/0.6487, allocations: 5 kB / 0.8829 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.6487, allocations: 0 / 0.8829 GB, free: 109.2 MB / 0.5417 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.000273/0.649, allocations: 352.9 kB / 0.8832 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.649, allocations: 10.11 kB / 0.8832 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.934e-05/0.6491, allocations: 39.62 kB / 0.8832 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.756e-05/0.6491, allocations: 7.594 kB / 0.8833 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.424e-05/0.6492, allocations: 166.9 kB / 0.8834 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.6492, allocations: 3.953 kB / 0.8834 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.6492, allocations: 6.156 kB / 0.8834 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.6493, allocations: 59.38 kB / 0.8835 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.6493, allocations: 1.781 kB / 0.8835 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.6494, allocations: 0 / 0.8835 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.6494, allocations: 2.125 kB / 0.8835 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.085e-05/0.6494, allocations: 23.14 kB / 0.8835 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000127/0.6496, allocations: 172.5 kB / 0.8837 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 9.255e-05/0.6497, allocations: 64.31 kB / 0.8837 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003012/0.65, allocations: 0.5554 MB / 0.8843 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/0.65, allocations: 31.94 kB / 0.8843 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.65, allocations: 4 kB / 0.8843 GB, free: 107.7 MB / 0.5417 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.01879/0.6688, allocations: 4.195 MB / 0.8884 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.6689, allocations: 53.84 kB / 0.8885 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.421e-05/0.6689, allocations: 90.83 kB / 0.8885 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.501e-05/0.669, allocations: 26.86 kB / 0.8886 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 2.113e-05/0.669, allocations: 80.14 kB / 0.8886 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.706e-05/0.6692, allocations: 59.03 kB / 0.8887 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.91e-05/0.6692, allocations: 5.344 kB / 0.8887 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.559e-05/0.6693, allocations: 325.7 kB / 0.889 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005001/0.6698, allocations: 312.5 kB / 0.8893 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000456/0.6702, allocations: 310.8 kB / 0.8896 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006524/0.6709, allocations: 381 kB / 0.89 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.6709, allocations: 3.938 kB / 0.89 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001466/0.6724, allocations: 0.7889 MB / 0.8907 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.6724, allocations: 7.531 kB / 0.8908 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.6724, allocations: 0.6094 kB / 0.8908 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.6725, allocations: 1.375 kB / 0.8908 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008002/0.6733, allocations: 94.89 kB / 0.8908 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.6733, allocations: 2.719 kB / 0.8908 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/0.6737, allocations: 6.078 kB / 0.8909 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.204e-05/0.6738, allocations: 39.2 kB / 0.8909 GB, free: 106.1 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001706/0.674, allocations: 118.3 kB / 0.891 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.089e-05/0.6741, allocations: 9.094 kB / 0.891 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003236/0.6773, allocations: 1.39 MB / 0.8924 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.6773, allocations: 11.28 kB / 0.8924 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.6774, allocations: 0 / 0.8924 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.6774, allocations: 4.734 kB / 0.8924 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002689/0.6801, allocations: 1.796 MB / 0.8941 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.6801, allocations: 0.5625 kB / 0.8941 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007436/0.6808, allocations: 111.9 kB / 0.8942 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.6809, allocations: 6.016 kB / 0.8943 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.865e-05/0.6809, allocations: 28.06 kB / 0.8943 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.6809, allocations: 0.6562 kB / 0.8943 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.6809, allocations: 6.109 kB / 0.8943 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002526/0.6835, allocations: 1.464 MB / 0.8957 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.847e-05/0.6835, allocations: 99.12 kB / 0.8958 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.514e-05/0.6836, allocations: 10.02 kB / 0.8958 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004735/0.6841, allocations: 16.92 kB / 0.8958 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.6842, allocations: 43.19 kB / 0.8959 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.114e-05/0.6843, allocations: 28.8 kB / 0.8959 GB, free: 105 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.396e-05/0.6844, allocations: 76.28 kB / 0.896 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6844, allocations: 0 / 0.896 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0007234/0.6851, allocations: 208.1 kB / 0.8962 GB, free: 104.9 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002972/0.6881, allocations: 2.23 MB / 0.8984 GB, free: 104 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001412/0.6895, allocations: 0.7198 MB / 0.8991 GB, free: 104 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.6895, allocations: 0.5625 kB / 0.8991 GB, free: 104 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0007095/0.6902, allocations: 454.6 kB / 0.8995 GB, free: 104 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.6904, allocations: 7.219 kB / 0.8995 GB, free: 104 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005308/0.6957, allocations: 2.172 MB / 0.9016 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001719/0.6959, allocations: 0.7194 MB / 0.9023 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001403/0.6973, allocations: 293.8 kB / 0.9026 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000568/0.6979, allocations: 117.3 kB / 0.9027 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of SimCode: time 7.32e-07/0.6979, allocations: 0 / 0.9027 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02556/0.7235, allocations: 11.42 MB / 0.9139 GB, free: 95.04 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/0.7237, allocations: 218.9 kB / 0.9141 GB, free: 94.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.929/2.653, allocations: 0 / 0.9141 GB, free: 94.8 MB / 0.5417 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/linux/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)