Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7266/0.7266, allocations: 127.4 MB / 134.9 MB, free: 3.43 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 185.4 kB / 164.6 MB, free: 11.62 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 205.2 MB / 399.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007852/0.0007852, allocations: 85.28 kB / 476.7 MB, free: 1.465 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.066e-05/2.058e-05, allocations: 8.125 kB / 0.5466 GB, free: 95.52 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1217, allocations: 76.77 MB / 0.6215 GB, free: 43.07 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1193/0.241, allocations: 102.2 MB / 0.7214 GB, free: 4.699 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.2413, allocations: 79.94 kB / 0.7215 GB, free: 4.621 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.005724/0.247, allocations: 1.905 MB / 0.7233 GB, free: 2.711 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2471, allocations: 0 / 0.7233 GB, free: 2.711 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.2471, allocations: 0 / 0.7233 GB, free: 2.711 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0002876/0.2474, allocations: 350.4 kB / 0.7237 GB, free: 2.324 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.2474, allocations: 8.031 kB / 0.7237 GB, free: 2.316 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.373e-05/0.2475, allocations: 7.953 kB / 0.7237 GB, free: 2.309 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.2476, allocations: 163 kB / 0.7238 GB, free: 2.109 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.2476, allocations: 0 / 0.7238 GB, free: 2.109 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.058e-05/0.2476, allocations: 8 kB / 0.7238 GB, free: 2.102 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.632e-05/0.2477, allocations: 15.94 kB / 0.7238 GB, free: 2.086 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.078e-05/0.2478, allocations: 37.69 kB / 0.7239 GB, free: 2.043 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.2478, allocations: 0 / 0.7239 GB, free: 2.043 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.2478, allocations: 4 kB / 0.7239 GB, free: 2.039 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-06/0.2478, allocations: 0 / 0.7239 GB, free: 2.039 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001434/0.248, allocations: 138.2 kB / 0.724 GB, free: 1.867 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 7.42e-05/0.248, allocations: 38.64 kB / 0.7241 GB, free: 1.82 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.244e-05/0.2481, allocations: 24.98 kB / 0.7241 GB, free: 1.793 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004403/0.2485, allocations: 0.5544 MB / 0.7246 GB, free: 1.109 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.2486, allocations: 32.72 kB / 0.7247 GB, free: 1.07 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=5): time 2.625e-06/0.2486, allocations: 4 kB / 0.7247 GB, free: 1.066 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.0008724/0.2495, allocations: 338.2 kB / 0.725 GB, free: 0.6836 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.707e-05/0.2495, allocations: 63.33 kB / 0.725 GB, free: 0.6094 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.79e-05/0.2496, allocations: 85 kB / 0.7251 GB, free: 0.5195 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.2496, allocations: 25.7 kB / 0.7251 GB, free: 500 kB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 2.585e-05/0.2496, allocations: 80.14 kB / 0.7252 GB, free: 416 kB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 3.188e-05/0.2497, allocations: 23.66 kB / 0.7252 GB, free: 392 kB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.5e-06/0.2497, allocations: 3.938 kB / 0.7252 GB, free: 388 kB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.2498, allocations: 322.9 kB / 0.7256 GB, free: 56 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.019e-05/0.2498, allocations: 20 kB / 0.7256 GB, free: 36 kB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.645e-05/0.2499, allocations: 16 kB / 0.7256 GB, free: 20 kB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.699e-05/0.2499, allocations: 19.98 kB / 0.7256 GB, free: 0 / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.2499, allocations: 0 / 0.7256 GB, free: 0 / 0.4948 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001682/0.2501, allocations: 93.66 kB / 0.7257 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2501, allocations: 4 kB / 0.7257 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.2501, allocations: 0 / 0.7257 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.2502, allocations: 0 / 0.7257 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.2503, allocations: 15.98 kB / 0.7257 GB, free: 15.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.2503, allocations: 0 / 0.7257 GB, free: 15.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.605e-05/0.2503, allocations: 8 kB / 0.7257 GB, free: 15.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.2504, allocations: 0 / 0.7257 GB, free: 15.88 MB / 0.5105 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 (9): * Single equations (assignments): 9 * 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 9.041e-05/0.2504, allocations: 108.9 kB / 0.7258 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.198e-05/0.2505, allocations: 4 kB / 0.7258 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000239/0.2507, allocations: 102.1 kB / 0.7259 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2507, allocations: 0 / 0.7259 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2507, allocations: 0 / 0.7259 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.2507, allocations: 0 / 0.7259 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.2509, allocations: 150.2 kB / 0.7261 GB, free: 15.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2509, allocations: 0 / 0.7261 GB, free: 15.47 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.251, allocations: 19.98 kB / 0.7261 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.251, allocations: 0 / 0.7261 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.251, allocations: 0 / 0.7261 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.251, allocations: 3.938 kB / 0.7261 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.251, allocations: 0 / 0.7261 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/0.2513, allocations: 141 kB / 0.7262 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.133e-05/0.2513, allocations: 77.11 kB / 0.7263 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.2513, allocations: 0 / 0.7263 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.605e-05/0.2514, allocations: 4 kB / 0.7263 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.647e-05/0.2514, allocations: 7.984 kB / 0.7263 GB, free: 15.19 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.2514, allocations: 4 kB / 0.7263 GB, free: 15.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 2.97e-05/0.2515, allocations: 79.34 kB / 0.7264 GB, free: 15.11 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2515, allocations: 3.938 kB / 0.7264 GB, free: 15.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002315/0.2517, allocations: 27.94 kB / 0.7264 GB, free: 15.07 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 8 * 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.0002081/0.2519, allocations: 131.4 kB / 0.7266 GB, free: 14.93 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001299/0.2521, allocations: 52.08 kB / 0.7266 GB, free: 14.88 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2521, allocations: 192 / 0.7266 GB, free: 14.88 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 4.184e-05/0.2521, allocations: 27.92 kB / 0.7266 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001042/0.2522, allocations: 3.938 kB / 0.7266 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003066/0.2526, allocations: 106 kB / 0.7267 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.2528, allocations: 0.6868 MB / 0.7274 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.054e-05/0.2529, allocations: 12.17 kB / 0.7274 GB, free: 14 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.669e-05/0.2529, allocations: 11.44 kB / 0.7274 GB, free: 13.99 MB / 0.5105 GB Notification: Performance of SimCode: time 3.61e-07/0.2529, allocations: 0 / 0.7274 GB, free: 13.99 MB / 0.5105 GB Notification: Performance of Templates: time 0.002615/0.2556, allocations: 0.7372 MB / 0.7281 GB, free: 13.26 MB / 0.5105 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)