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"}) [: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.8062/0.8062, allocations: 141.8 MB / 149.1 MB, free: 12.69 MB / 130.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001061/0.001062, allocations: 189.2 kB / 182 MB, free: 13.14 MB / 162.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 221.3 MB / 436 MB, free: 0.6562 MB / 322.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009856/0.0009855, allocations: 92.67 kB / 0.507 GB, free: 13.57 MB / 418.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001828/0.001829, allocations: 287.7 kB / 0.5885 GB, free: 57.98 MB / 418.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1525/0.1544, allocations: 89.65 MB / 0.676 GB, free: 272 kB / 450.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.4909, allocations: 82.77 MB / 0.7568 GB, free: 35.25 MB / 466.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.129/0.62, allocations: 108.4 MB / 0.8627 GB, free: 6.703 MB / 0.534 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.6202, allocations: 83.88 kB / 0.8628 GB, free: 6.625 MB / 0.534 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.007328/0.6276, allocations: 2.393 MB / 0.8651 GB, free: 4.188 MB / 0.534 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.6276, allocations: 8 kB / 0.8651 GB, free: 4.18 MB / 0.534 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.44e-05/0.6276, allocations: 11.91 kB / 0.8651 GB, free: 4.168 MB / 0.534 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.6278, allocations: 163.1 kB / 0.8653 GB, free: 3.969 MB / 0.534 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.6278, allocations: 0 / 0.8653 GB, free: 3.969 MB / 0.534 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.6278, allocations: 4 kB / 0.8653 GB, free: 3.965 MB / 0.534 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.073e-05/0.6279, allocations: 27.92 kB / 0.8653 GB, free: 3.938 MB / 0.534 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.58e-05/0.628, allocations: 45.59 kB / 0.8654 GB, free: 3.887 MB / 0.534 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.628, allocations: 3.938 kB / 0.8654 GB, free: 3.883 MB / 0.534 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.628, allocations: 0 / 0.8654 GB, free: 3.883 MB / 0.534 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.628, allocations: 4 kB / 0.8654 GB, free: 3.879 MB / 0.534 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.6282, allocations: 142.2 kB / 0.8655 GB, free: 3.703 MB / 0.534 GB Notification: Performance of preOpt comSubExp (simulation): time 6.563e-05/0.6283, allocations: 37.62 kB / 0.8655 GB, free: 3.66 MB / 0.534 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.916e-05/0.6283, allocations: 21.09 kB / 0.8656 GB, free: 3.637 MB / 0.534 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00046/0.6288, allocations: 0.5583 MB / 0.8661 GB, free: 2.949 MB / 0.534 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.6288, allocations: 46.48 kB / 0.8662 GB, free: 2.895 MB / 0.534 GB Notification: Performance of pre-optimization done (n=8): time 1.282e-06/0.6288, allocations: 4 kB / 0.8662 GB, free: 2.891 MB / 0.534 GB Notification: Performance of matching and sorting (n=15): time 0.001758/0.6306, allocations: 0.8413 MB / 0.867 GB, free: 1.922 MB / 0.534 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.014e-05/0.6306, allocations: 51.41 kB / 0.867 GB, free: 1.859 MB / 0.534 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.042e-05/0.6307, allocations: 97 kB / 0.8671 GB, free: 1.758 MB / 0.534 GB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.6307, allocations: 25.7 kB / 0.8671 GB, free: 1.727 MB / 0.534 GB Notification: Performance of collectInitialEqns (initialization): time 2.664e-05/0.6308, allocations: 80.14 kB / 0.8672 GB, free: 1.645 MB / 0.534 GB Notification: Performance of collectInitialBindings (initialization): time 4.494e-05/0.6308, allocations: 47.2 kB / 0.8673 GB, free: 1.598 MB / 0.534 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.062e-06/0.6308, allocations: 0 / 0.8673 GB, free: 1.598 MB / 0.534 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.6309, allocations: 322.8 kB / 0.8676 GB, free: 1.273 MB / 0.534 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.151e-05/0.631, allocations: 20 kB / 0.8676 GB, free: 1.254 MB / 0.534 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.493e-05/0.631, allocations: 56.42 kB / 0.8676 GB, free: 1.184 MB / 0.534 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.536e-05/0.6311, allocations: 31.98 kB / 0.8677 GB, free: 1.152 MB / 0.534 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.6311, allocations: 0 / 0.8677 GB, free: 1.152 MB / 0.534 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001972/0.6313, allocations: 113.5 kB / 0.8678 GB, free: 1.035 MB / 0.534 GB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.6314, allocations: 4.125 kB / 0.8678 GB, free: 1.031 MB / 0.534 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.6314, allocations: 4 kB / 0.8678 GB, free: 1.027 MB / 0.534 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.477e-06/0.6314, allocations: 7.938 kB / 0.8678 GB, free: 1.02 MB / 0.534 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.6315, allocations: 31.92 kB / 0.8678 GB, free: 0.9883 MB / 0.534 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-06/0.6316, allocations: 0 / 0.8678 GB, free: 0.9883 MB / 0.534 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.3e-05/0.6316, allocations: 7.984 kB / 0.8678 GB, free: 0.9805 MB / 0.534 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.6316, allocations: 4.094 kB / 0.8678 GB, free: 0.9766 MB / 0.534 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 6.121e-05/0.6317, allocations: 108.9 kB / 0.8679 GB, free: 0.8633 MB / 0.534 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.724e-05/0.6317, allocations: 7.906 kB / 0.868 GB, free: 0.8555 MB / 0.534 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002817/0.632, allocations: 125.5 kB / 0.8681 GB, free: 0.7266 MB / 0.534 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.632, allocations: 0 / 0.8681 GB, free: 0.7266 MB / 0.534 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.632, allocations: 3.906 kB / 0.8681 GB, free: 0.7227 MB / 0.534 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.632, allocations: 3.984 kB / 0.8681 GB, free: 0.7188 MB / 0.534 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004522/0.6325, allocations: 382.3 kB / 0.8684 GB, free: 296 kB / 0.534 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.6325, allocations: 128 / 0.8684 GB, free: 296 kB / 0.534 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.6327, allocations: 31.98 kB / 0.8685 GB, free: 264 kB / 0.534 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.6327, allocations: 0 / 0.8685 GB, free: 264 kB / 0.534 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.6327, allocations: 4 kB / 0.8685 GB, free: 260 kB / 0.534 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.6327, allocations: 0 / 0.8685 GB, free: 260 kB / 0.534 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.6327, allocations: 7.938 kB / 0.8685 GB, free: 252 kB / 0.534 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003293/0.633, allocations: 309.6 kB / 0.8688 GB, free: 15.89 MB / 0.5497 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004534/0.6335, allocations: 0.7135 MB / 0.8695 GB, free: 15.12 MB / 0.5497 GB Notification: Performance of postOpt removeConstants (simulation): time 3.305e-05/0.6335, allocations: 85.02 kB / 0.8696 GB, free: 15.02 MB / 0.5497 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.801e-05/0.6336, allocations: 64 / 0.8696 GB, free: 15.02 MB / 0.5497 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.6337, allocations: 11.98 kB / 0.8696 GB, free: 15.01 MB / 0.5497 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.965e-05/0.6337, allocations: 4 kB / 0.8696 GB, free: 15.01 MB / 0.5497 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.6337, allocations: 8 kB / 0.8696 GB, free: 15 MB / 0.5497 GB Notification: Performance of sort global known variables: time 2.502e-05/0.6338, allocations: 79.27 kB / 0.8697 GB, free: 14.92 MB / 0.5497 GB Notification: Performance of remove unused functions: time 0.0008301/0.6346, allocations: 36.12 kB / 0.8697 GB, free: 14.89 MB / 0.5497 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.0001805/0.6348, allocations: 135.1 kB / 0.8698 GB, free: 14.74 MB / 0.5497 GB Notification: Performance of simCode: created initialization part: time 0.0001451/0.6349, allocations: 76.03 kB / 0.8699 GB, free: 14.67 MB / 0.5497 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.6349, allocations: 0 / 0.8699 GB, free: 14.67 MB / 0.5497 GB Notification: Performance of simCode: created simulation system equations: time 5.866e-05/0.635, allocations: 43.92 kB / 0.8699 GB, free: 14.62 MB / 0.5497 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.6352, allocations: 4 kB / 0.8699 GB, free: 14.62 MB / 0.5497 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003745/0.6355, allocations: 152.1 kB / 0.8701 GB, free: 14.44 MB / 0.5497 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.6358, allocations: 0.7077 MB / 0.8708 GB, free: 13.7 MB / 0.5497 GB Notification: Performance of SimCode: time 2.51e-07/0.6358, allocations: 3.938 kB / 0.8708 GB, free: 13.7 MB / 0.5497 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)