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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.086/1.086, allocations: 141.8 MB / 149.3 MB, free: 9.227 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.001096/0.001096, allocations: 180.6 kB / 182.2 MB, free: 9.441 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.405/1.405, allocations: 221.5 MB / 436.4 MB, free: 13.29 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.0008708/0.0008708, allocations: 88.11 kB / 0.5074 GB, free: 10.12 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001818/0.001818, allocations: 280.7 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.931e-05/1.94e-05, allocations: 4 kB / 0.6765 GB, free: 12.81 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.345, allocations: 82.78 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1279/0.4729, allocations: 108.5 MB / 0.8633 GB, free: 3.402 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4732, allocations: 79.83 kB / 0.8634 GB, free: 3.328 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.007568/0.4808, allocations: 2.375 MB / 0.8657 GB, free: 0.9492 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.465e-06/0.4808, allocations: 0 / 0.8657 GB, free: 0.9492 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.4808, allocations: 3.938 kB / 0.8657 GB, free: 0.9453 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.0003345/0.4812, allocations: 346.4 kB / 0.8661 GB, free: 0.5625 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.4812, allocations: 12.03 kB / 0.8661 GB, free: 0.5508 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.165e-05/0.4813, allocations: 3.938 kB / 0.8661 GB, free: 0.5469 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.4814, allocations: 167 kB / 0.8662 GB, free: 352 kB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.4814, allocations: 11.95 kB / 0.8662 GB, free: 340 kB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.383e-05/0.4814, allocations: 0 / 0.8662 GB, free: 340 kB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.225e-05/0.4815, allocations: 23.94 kB / 0.8663 GB, free: 316 kB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.838e-05/0.4816, allocations: 41.69 kB / 0.8663 GB, free: 268 kB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.4817, allocations: 4 kB / 0.8663 GB, free: 264 kB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.4817, allocations: 3.984 kB / 0.8663 GB, free: 260 kB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.4817, allocations: 0 / 0.8663 GB, free: 260 kB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001634/0.4818, allocations: 138.2 kB / 0.8664 GB, free: 84 kB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 9.455e-05/0.482, allocations: 54.56 kB / 0.8665 GB, free: 20 kB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.181e-05/0.482, allocations: 24.86 kB / 0.8665 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004568/0.4825, allocations: 0.5544 MB / 0.8671 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.4825, allocations: 38.45 kB / 0.8671 GB, free: 15.26 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.413e-06/0.4825, allocations: 0 / 0.8671 GB, free: 15.26 MB / 0.5417 GB Notification: Performance of matching and sorting (n=17): time 0.01319/0.4957, allocations: 3.329 MB / 0.8703 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.4958, allocations: 51.41 kB / 0.8704 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.202e-05/0.4959, allocations: 85 kB / 0.8705 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.562e-05/0.4959, allocations: 29.7 kB / 0.8705 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.204e-05/0.496, allocations: 84.08 kB / 0.8706 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.4961, allocations: 59.09 kB / 0.8706 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.704e-05/0.4962, allocations: 0 / 0.8706 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.4963, allocations: 323 kB / 0.8709 GB, free: 11.14 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004378/0.4968, allocations: 304 kB / 0.8712 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004717/0.4972, allocations: 304.9 kB / 0.8715 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006662/0.4979, allocations: 377.3 kB / 0.8719 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4979, allocations: 0 / 0.8719 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00138/0.4993, allocations: 0.7746 MB / 0.8726 GB, free: 9.402 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.4993, allocations: 4 kB / 0.8726 GB, free: 9.398 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.4994, allocations: 0 / 0.8726 GB, free: 9.398 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.4994, allocations: 0 / 0.8726 GB, free: 9.398 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008544/0.5002, allocations: 95.94 kB / 0.8727 GB, free: 9.305 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.5002, allocations: 4 kB / 0.8727 GB, free: 9.301 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005479/0.5008, allocations: 8 kB / 0.8728 GB, free: 9.293 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.789e-05/0.5009, allocations: 39.95 kB / 0.8728 GB, free: 9.254 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.0002171/0.5011, allocations: 108.9 kB / 0.8729 GB, free: 9.141 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.415e-05/0.5012, allocations: 11.84 kB / 0.8729 GB, free: 9.129 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003304/0.5045, allocations: 1.341 MB / 0.8742 GB, free: 7.777 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.5045, allocations: 4 kB / 0.8742 GB, free: 7.773 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.5045, allocations: 4 kB / 0.8742 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.5045, allocations: 3.984 kB / 0.8742 GB, free: 7.766 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00268/0.5072, allocations: 1.693 MB / 0.8759 GB, free: 6.027 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.5072, allocations: 0 / 0.8759 GB, free: 6.027 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008445/0.5081, allocations: 111.9 kB / 0.876 GB, free: 5.918 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.5081, allocations: 0 / 0.876 GB, free: 5.918 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.474e-05/0.5082, allocations: 24.03 kB / 0.876 GB, free: 5.895 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/0.5082, allocations: 7.984 kB / 0.876 GB, free: 5.887 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5082, allocations: 3.938 kB / 0.876 GB, free: 5.883 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/0.5104, allocations: 1.393 MB / 0.8774 GB, free: 4.465 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.544e-05/0.5104, allocations: 88.98 kB / 0.8775 GB, free: 4.359 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.765e-05/0.5105, allocations: 4 kB / 0.8775 GB, free: 4.355 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005415/0.5111, allocations: 8.062 kB / 0.8775 GB, free: 4.348 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.5112, allocations: 43.92 kB / 0.8775 GB, free: 4.305 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-05/0.5113, allocations: 35.98 kB / 0.8776 GB, free: 4.27 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.763e-05/0.5113, allocations: 75.28 kB / 0.8776 GB, free: 4.195 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.5e-07/0.5113, allocations: 0 / 0.8776 GB, free: 4.195 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0005951/0.5119, allocations: 199.7 kB / 0.8778 GB, free: 4 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.0005305/0.5125, allocations: 246.8 kB / 0.8781 GB, free: 3.746 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001063/0.5135, allocations: 0.7006 MB / 0.8787 GB, free: 3.047 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5136, allocations: 0 / 0.8787 GB, free: 3.047 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005685/0.5141, allocations: 427.9 kB / 0.8791 GB, free: 2.629 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.5143, allocations: 4.938 kB / 0.8791 GB, free: 2.625 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003354/0.5177, allocations: 0.6831 MB / 0.8798 GB, free: 1.914 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.518, allocations: 0.7258 MB / 0.8805 GB, free: 1.156 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001503/0.5195, allocations: 289.3 kB / 0.8808 GB, free: 0.8711 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000561/0.5201, allocations: 99.41 kB / 0.8809 GB, free: 0.7773 MB / 0.5417 GB Notification: Performance of SimCode: time 2.8e-07/0.5201, allocations: 0 / 0.8809 GB, free: 0.7773 MB / 0.5417 GB Notification: Performance of Templates: time 0.01647/0.5365, allocations: 10.12 MB / 0.8908 GB, free: 6.66 MB / 0.5573 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)