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.8463/0.8463, allocations: 141.8 MB / 149.3 MB, free: 9.223 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.001179/0.001179, allocations: 168.9 kB / 182.2 MB, free: 9.457 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.605/1.605, allocations: 221.5 MB / 436.4 MB, free: 13.36 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.001037/0.001037, allocations: 86.11 kB / 0.5074 GB, free: 10.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.001742/0.001742, allocations: 275.8 kB / 0.5889 GB, free: 54.67 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.43e-05/2.428e-05, allocations: 8 kB / 0.6766 GB, free: 12.72 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4861/0.4861, allocations: 82.78 MB / 0.7575 GB, free: 31.98 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.155/0.6412, allocations: 108.5 MB / 0.8634 GB, free: 3.371 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.6416, allocations: 83.94 kB / 0.8635 GB, free: 3.289 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.007536/0.6491, allocations: 2.373 MB / 0.8658 GB, free: 0.9219 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.423e-06/0.6492, allocations: 0 / 0.8658 GB, free: 0.9219 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.287e-06/0.6492, allocations: 4 kB / 0.8658 GB, free: 0.918 MB / 0.5261 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.0003734/0.6496, allocations: 350.4 kB / 0.8661 GB, free: 0.5312 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.6496, allocations: 12.03 kB / 0.8662 GB, free: 0.5195 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.847e-05/0.6497, allocations: 3.906 kB / 0.8662 GB, free: 0.5156 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001381/0.6498, allocations: 167.1 kB / 0.8663 GB, free: 320 kB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.6498, allocations: 3.953 kB / 0.8663 GB, free: 316 kB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.6499, allocations: 4 kB / 0.8663 GB, free: 312 kB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001218/0.65, allocations: 19.98 kB / 0.8663 GB, free: 292 kB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.279e-05/0.6501, allocations: 45.69 kB / 0.8664 GB, free: 240 kB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.6501, allocations: 3.938 kB / 0.8664 GB, free: 236 kB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.6501, allocations: 0 / 0.8664 GB, free: 236 kB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.6501, allocations: 0 / 0.8664 GB, free: 236 kB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001809/0.6503, allocations: 146.2 kB / 0.8665 GB, free: 52 kB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.6505, allocations: 54.7 kB / 0.8666 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.123e-05/0.6505, allocations: 28.8 kB / 0.8666 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00048/0.651, allocations: 0.5544 MB / 0.8672 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.651, allocations: 34.52 kB / 0.8672 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.6511, allocations: 0 / 0.8672 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=17): time 0.01278/0.6638, allocations: 3.327 MB / 0.8704 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/0.6639, allocations: 51.41 kB / 0.8705 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.605e-05/0.664, allocations: 92.98 kB / 0.8706 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.302e-05/0.6641, allocations: 25.7 kB / 0.8706 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.424e-05/0.6642, allocations: 80.14 kB / 0.8707 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.6643, allocations: 59.11 kB / 0.8707 GB, free: 11.44 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.609e-05/0.6643, allocations: 0 / 0.8707 GB, free: 11.44 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.6645, allocations: 323 kB / 0.871 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004361/0.6649, allocations: 304 kB / 0.8713 GB, free: 10.82 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004484/0.6654, allocations: 300 kB / 0.8716 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006968/0.6661, allocations: 381.3 kB / 0.872 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.6661, allocations: 0 / 0.872 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001367/0.6675, allocations: 0.7708 MB / 0.8727 GB, free: 9.375 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.6675, allocations: 5.719 kB / 0.8727 GB, free: 9.371 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.6675, allocations: 0 / 0.8727 GB, free: 9.371 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.6676, allocations: 4 kB / 0.8727 GB, free: 9.367 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008199/0.6684, allocations: 99.89 kB / 0.8728 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.6684, allocations: 0 / 0.8728 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004903/0.6689, allocations: 4 kB / 0.8728 GB, free: 9.266 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.361e-05/0.669, allocations: 39.95 kB / 0.8729 GB, free: 9.227 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 () * 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.0001999/0.6692, allocations: 104.9 kB / 0.873 GB, free: 9.117 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001389/0.6706, allocations: 0.7708 MB / 0.8737 GB, free: 8.34 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.452e-05/0.6707, allocations: 7.906 kB / 0.8737 GB, free: 8.332 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003193/0.6739, allocations: 1.341 MB / 0.875 GB, free: 6.98 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.6739, allocations: 4 kB / 0.8751 GB, free: 6.977 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.6739, allocations: 0 / 0.8751 GB, free: 6.977 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-06/0.6739, allocations: 7.922 kB / 0.8751 GB, free: 6.969 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002755/0.6767, allocations: 1.697 MB / 0.8767 GB, free: 5.227 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.6767, allocations: 3.938 kB / 0.8767 GB, free: 5.223 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007986/0.6775, allocations: 119.9 kB / 0.8768 GB, free: 5.105 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.6775, allocations: 0 / 0.8768 GB, free: 5.105 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.507e-05/0.6776, allocations: 20 kB / 0.8769 GB, free: 5.086 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.396e-06/0.6776, allocations: 5.562 kB / 0.8769 GB, free: 5.082 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.104e-06/0.6777, allocations: 11.88 kB / 0.8769 GB, free: 5.07 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002194/0.6798, allocations: 1.385 MB / 0.8782 GB, free: 3.66 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.056e-05/0.6799, allocations: 100.9 kB / 0.8783 GB, free: 3.543 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.048e-05/0.68, allocations: 4 kB / 0.8783 GB, free: 3.539 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005093/0.6805, allocations: 7.953 kB / 0.8783 GB, free: 3.531 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.6807, allocations: 39.97 kB / 0.8784 GB, free: 3.492 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.426e-05/0.6807, allocations: 35.98 kB / 0.8784 GB, free: 3.457 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.072e-05/0.6808, allocations: 75.28 kB / 0.8785 GB, free: 3.383 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6808, allocations: 0 / 0.8785 GB, free: 3.383 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006594/0.6815, allocations: 195.7 kB / 0.8787 GB, free: 3.191 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 () * 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.003077/0.6845, allocations: 2.142 MB / 0.8808 GB, free: 1.012 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001206/0.6858, allocations: 0.6997 MB / 0.8814 GB, free: 320 kB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.6858, allocations: 0 / 0.8814 GB, free: 320 kB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0006681/0.6865, allocations: 424 kB / 0.8818 GB, free: 15.89 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000226/0.6867, allocations: 8 kB / 0.8818 GB, free: 15.89 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003692/0.6904, allocations: 0.7861 MB / 0.8826 GB, free: 15.06 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.6908, allocations: 0.7179 MB / 0.8833 GB, free: 14.31 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001444/0.6922, allocations: 293.3 kB / 0.8836 GB, free: 14.02 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005642/0.6928, allocations: 115 kB / 0.8837 GB, free: 13.91 MB / 0.5573 GB Notification: Performance of SimCode: time 9.62e-07/0.6928, allocations: 0 / 0.8837 GB, free: 13.91 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03571/0.7285, allocations: 11.23 MB / 0.8947 GB, free: 2.676 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002203/0.7288, allocations: 179.7 kB / 0.8948 GB, free: 2.48 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.513, allocations: 0 / 0.8948 GB, free: 2.48 MB / 0.5573 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)