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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7329/0.7329, allocations: 141.8 MB / 149.1 MB, free: 13.74 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 173.1 kB / 181.9 MB, free: 10.33 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 221.3 MB / 436 MB, free: 2.898 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009146/0.0009145, allocations: 106.6 kB / 0.507 GB, free: 17.91 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001913/0.001913, allocations: 279.9 kB / 0.5885 GB, free: 4.312 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.12e-05/1.122e-05, allocations: 4.031 kB / 0.6759 GB, free: 137.2 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1729/0.173, allocations: 82.79 MB / 0.7568 GB, free: 84.14 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1307/0.3037, allocations: 108.4 MB / 0.8626 GB, free: 7.598 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/0.3041, allocations: 84.86 kB / 0.8627 GB, free: 7.516 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.006956/0.3111, allocations: 2.057 MB / 0.8647 GB, free: 5.453 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.3111, allocations: 0 / 0.8647 GB, free: 5.453 MB / 0.5419 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.0003277/0.3114, allocations: 334.4 kB / 0.865 GB, free: 5.082 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3115, allocations: 8.031 kB / 0.865 GB, free: 5.074 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.706e-05/0.3115, allocations: 11.91 kB / 0.865 GB, free: 5.062 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.3117, allocations: 171 kB / 0.8652 GB, free: 4.855 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.3117, allocations: 0 / 0.8652 GB, free: 4.855 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.3117, allocations: 8 kB / 0.8652 GB, free: 4.848 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.378e-05/0.3118, allocations: 19.94 kB / 0.8652 GB, free: 4.828 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.778e-05/0.3119, allocations: 45.69 kB / 0.8653 GB, free: 4.777 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.3119, allocations: 3.906 kB / 0.8653 GB, free: 4.773 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.312, allocations: 0 / 0.8653 GB, free: 4.773 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.312, allocations: 0 / 0.8653 GB, free: 4.773 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001883/0.3122, allocations: 142.2 kB / 0.8654 GB, free: 4.598 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 6.582e-05/0.3122, allocations: 37.7 kB / 0.8655 GB, free: 4.555 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.873e-05/0.3123, allocations: 24.86 kB / 0.8655 GB, free: 4.527 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00051/0.3128, allocations: 0.5585 MB / 0.866 GB, free: 3.84 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.3128, allocations: 34.55 kB / 0.8661 GB, free: 3.797 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.3129, allocations: 0 / 0.8661 GB, free: 3.797 MB / 0.5419 GB Notification: Performance of matching and sorting (n=15): time 0.001742/0.3146, allocations: 0.8554 MB / 0.8669 GB, free: 2.809 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.3146, allocations: 51.41 kB / 0.8669 GB, free: 2.746 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.08e-05/0.3147, allocations: 88.98 kB / 0.867 GB, free: 2.652 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.3148, allocations: 25.7 kB / 0.8671 GB, free: 2.621 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.994e-05/0.3148, allocations: 88.27 kB / 0.8671 GB, free: 2.531 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 4.475e-05/0.3148, allocations: 47.3 kB / 0.8672 GB, free: 2.484 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-06/0.3149, allocations: 0 / 0.8672 GB, free: 2.484 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.315, allocations: 318.8 kB / 0.8675 GB, free: 2.164 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.293e-05/0.315, allocations: 24.06 kB / 0.8675 GB, free: 2.141 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.726e-05/0.3151, allocations: 56.28 kB / 0.8676 GB, free: 2.07 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.803e-05/0.3152, allocations: 39.92 kB / 0.8676 GB, free: 2.031 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.3152, allocations: 0 / 0.8676 GB, free: 2.031 MB / 0.5419 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002058/0.3154, allocations: 113.5 kB / 0.8677 GB, free: 1.914 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.3154, allocations: 4 kB / 0.8677 GB, free: 1.91 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3154, allocations: 0 / 0.8677 GB, free: 1.91 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.3155, allocations: 4 kB / 0.8677 GB, free: 1.906 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.3156, allocations: 28.05 kB / 0.8677 GB, free: 1.879 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3156, allocations: 8 kB / 0.8678 GB, free: 1.871 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.059e-05/0.3157, allocations: 0 / 0.8678 GB, free: 1.871 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.3157, allocations: 4 kB / 0.8678 GB, free: 1.867 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 7.561e-05/0.3158, allocations: 112.9 kB / 0.8679 GB, free: 1.75 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.3158, allocations: 7.906 kB / 0.8679 GB, free: 1.742 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003263/0.3161, allocations: 117.6 kB / 0.868 GB, free: 1.617 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3162, allocations: 4 kB / 0.868 GB, free: 1.613 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3162, allocations: 0 / 0.868 GB, free: 1.613 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.3162, allocations: 8 kB / 0.868 GB, free: 1.605 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005051/0.3167, allocations: 390.2 kB / 0.8684 GB, free: 1.168 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.3167, allocations: 0 / 0.8684 GB, free: 1.168 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.3168, allocations: 23.98 kB / 0.8684 GB, free: 1.145 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.3169, allocations: 4 kB / 0.8684 GB, free: 1.141 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.3169, allocations: 0 / 0.8684 GB, free: 1.141 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.3169, allocations: 12.06 kB / 0.8684 GB, free: 1.129 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.3169, allocations: 3.984 kB / 0.8684 GB, free: 1.125 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003479/0.3172, allocations: 305.1 kB / 0.8687 GB, free: 0.7773 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.224e-05/0.3173, allocations: 89.02 kB / 0.8688 GB, free: 0.6719 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/0.3173, allocations: 4 kB / 0.8688 GB, free: 0.668 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.896e-05/0.3174, allocations: 0 / 0.8688 GB, free: 0.668 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.493e-05/0.3175, allocations: 11.92 kB / 0.8688 GB, free: 0.6562 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.3175, allocations: 8 kB / 0.8688 GB, free: 0.6484 MB / 0.5419 GB Notification: Performance of sort global known variables: time 3.166e-05/0.3175, allocations: 79.34 kB / 0.8689 GB, free: 0.5703 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0002744/0.3178, allocations: 40.06 kB / 0.8689 GB, free: 0.5312 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (15): * Single equations (assignments): 15 * 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.0002106/0.318, allocations: 131.2 kB / 0.869 GB, free: 404 kB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001508/0.3182, allocations: 71.88 kB / 0.8691 GB, free: 332 kB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3182, allocations: 4 kB / 0.8691 GB, free: 328 kB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 7.782e-05/0.3183, allocations: 47.88 kB / 0.8692 GB, free: 280 kB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.3184, allocations: 8.484 kB / 0.8692 GB, free: 272 kB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004368/0.3189, allocations: 143.5 kB / 0.8693 GB, free: 92 kB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004289/0.3193, allocations: 0.7077 MB / 0.87 GB, free: 15.35 MB / 0.5575 GB Notification: Performance of SimCode: time 2.41e-07/0.3193, allocations: 0 / 0.87 GB, free: 15.35 MB / 0.5575 GB Notification: Performance of Templates: time 0.00401/0.3234, allocations: 1.124 MB / 0.8711 GB, free: 14.24 MB / 0.5575 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)