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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 108.1 kB / 16.27 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 190.3 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002378/0.002378, allocations: 290.1 kB / 291.3 MB, free: 14.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.198/1.198, allocations: 178.5 MB / 0.5079 GB, free: 12.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002654/0.002654, allocations: 103.8 kB / 0.6071 GB, free: 9.281 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.1702, allocations: 89.13 MB / 0.6942 GB, free: 68 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001836/0.1721, allocations: 0.6183 MB / 0.6948 GB, free: 15.44 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.1737, allocations: 1.289 MB / 0.696 GB, free: 14.13 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.147e-05/0.1738, allocations: 0 / 0.696 GB, free: 14.13 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.055e-05/0.1738, allocations: 0 / 0.696 GB, free: 14.13 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.254e-05/0.1738, allocations: 3.938 kB / 0.696 GB, free: 14.13 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003655/0.1742, allocations: 75.73 kB / 0.6961 GB, free: 14.05 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 5.381e-05/0.1743, allocations: 23.97 kB / 0.6961 GB, free: 14.03 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.626e-05/0.1743, allocations: 0 / 0.6961 GB, free: 14.03 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.234e-05/0.1743, allocations: 11.94 kB / 0.6961 GB, free: 14.02 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.593e-05/0.1744, allocations: 11.98 kB / 0.6961 GB, free: 14.01 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.658e-06/0.1744, allocations: 4 kB / 0.6961 GB, free: 14 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002085/0.1746, allocations: 107.9 kB / 0.6963 GB, free: 13.9 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.64e-05/0.1746, allocations: 7.938 kB / 0.6963 GB, free: 13.89 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.093e-05/0.1747, allocations: 7.938 kB / 0.6963 GB, free: 13.88 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001403/0.1748, allocations: 71.83 kB / 0.6963 GB, free: 13.81 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1748, allocations: 0 / 0.6963 GB, free: 13.81 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.323e-06/0.1748, allocations: 0 / 0.6963 GB, free: 13.81 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.1748, allocations: 0 / 0.6963 GB, free: 13.81 MB / 0.545 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.0004277/0.1753, allocations: 358 kB / 0.6967 GB, free: 13.42 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.1753, allocations: 16.03 kB / 0.6967 GB, free: 13.4 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.37e-05/0.1754, allocations: 4.844 kB / 0.6967 GB, free: 13.4 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.1755, allocations: 168.3 kB / 0.6969 GB, free: 13.2 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.434e-06/0.1755, allocations: 384 / 0.6969 GB, free: 13.2 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.624e-05/0.1755, allocations: 8.375 kB / 0.6969 GB, free: 13.19 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.1756, allocations: 53.98 kB / 0.6969 GB, free: 13.13 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1757, allocations: 0 / 0.6969 GB, free: 13.13 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.1757, allocations: 4 kB / 0.6969 GB, free: 13.12 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.1757, allocations: 0 / 0.6969 GB, free: 13.12 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.426e-05/0.1758, allocations: 23.98 kB / 0.6969 GB, free: 13.1 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001797/0.1759, allocations: 165.7 kB / 0.6971 GB, free: 12.89 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.1761, allocations: 62.48 kB / 0.6972 GB, free: 12.82 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.96e-05/0.1761, allocations: 20.86 kB / 0.6972 GB, free: 12.8 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005232/0.1766, allocations: 0.5625 MB / 0.6977 GB, free: 12.11 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.1767, allocations: 38.5 kB / 0.6978 GB, free: 12.06 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.1767, allocations: 0 / 0.6978 GB, free: 12.06 MB / 0.545 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.02142/0.1981, allocations: 4.378 MB / 0.702 GB, free: 7.527 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.1982, allocations: 55.41 kB / 0.7021 GB, free: 7.461 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.904e-05/0.1983, allocations: 93.86 kB / 0.7022 GB, free: 7.359 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.333e-05/0.1983, allocations: 25.7 kB / 0.7022 GB, free: 7.328 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.668e-05/0.1984, allocations: 80.14 kB / 0.7023 GB, free: 7.246 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.1985, allocations: 55.2 kB / 0.7023 GB, free: 7.191 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002592/0.1988, allocations: 97.66 kB / 0.7024 GB, free: 7.09 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.1989, allocations: 318.8 kB / 0.7027 GB, free: 6.77 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000553/0.1995, allocations: 323.8 kB / 0.703 GB, free: 6.453 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005382/0.2, allocations: 307.9 kB / 0.7033 GB, free: 6.152 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.2016, allocations: 0.7684 MB / 0.7041 GB, free: 5.383 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2016, allocations: 0 / 0.7041 GB, free: 5.383 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001615/0.2032, allocations: 0.8038 MB / 0.7049 GB, free: 4.574 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.2032, allocations: 4 kB / 0.7049 GB, free: 4.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.2033, allocations: 0 / 0.7049 GB, free: 4.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.2033, allocations: 0 / 0.7049 GB, free: 4.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008398/0.2041, allocations: 95.88 kB / 0.705 GB, free: 4.477 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.2041, allocations: 7.938 kB / 0.705 GB, free: 4.469 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005247/0.2047, allocations: 8 kB / 0.705 GB, free: 4.461 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.14e-05/0.2048, allocations: 35.98 kB / 0.705 GB, free: 4.426 MB / 0.545 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002062/0.205, allocations: 121.5 kB / 0.7051 GB, free: 4.301 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.213e-05/0.2051, allocations: 4 kB / 0.7051 GB, free: 4.297 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/0.2083, allocations: 1.407 MB / 0.7065 GB, free: 2.887 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.2083, allocations: 4 kB / 0.7065 GB, free: 2.883 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.2083, allocations: 4 kB / 0.7065 GB, free: 2.879 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2084, allocations: 0 / 0.7065 GB, free: 2.879 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002972/0.2113, allocations: 1.826 MB / 0.7083 GB, free: 0.9922 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.2114, allocations: 0 / 0.7083 GB, free: 0.9922 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008141/0.2122, allocations: 107.9 kB / 0.7084 GB, free: 0.8867 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.2122, allocations: 4 kB / 0.7084 GB, free: 0.8828 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-05/0.2123, allocations: 27.94 kB / 0.7084 GB, free: 0.8555 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/0.2123, allocations: 4 kB / 0.7084 GB, free: 0.8516 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2123, allocations: 0 / 0.7084 GB, free: 0.8516 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.235/0.4473, allocations: 1.466 MB / 0.7099 GB, free: 51 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.147e-05/0.4474, allocations: 92.11 kB / 0.71 GB, free: 50.91 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.082e-05/0.4475, allocations: 8.375 kB / 0.71 GB, free: 50.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005793/0.4481, allocations: 15.22 kB / 0.71 GB, free: 50.91 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.4482, allocations: 39.23 kB / 0.71 GB, free: 50.91 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-05/0.4483, allocations: 34.05 kB / 0.7101 GB, free: 50.91 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.331e-05/0.4483, allocations: 75.97 kB / 0.7101 GB, free: 50.83 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4484, allocations: 0 / 0.7101 GB, free: 50.83 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0005505/0.4489, allocations: 180.3 kB / 0.7103 GB, free: 50.83 MB / 0.545 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004589/0.4494, allocations: 221.5 kB / 0.7105 GB, free: 50.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001289/0.4507, allocations: 0.7494 MB / 0.7112 GB, free: 50.69 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4507, allocations: 2.812 kB / 0.7112 GB, free: 50.69 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0005588/0.4512, allocations: 453.3 kB / 0.7117 GB, free: 50.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.4516, allocations: 17.5 kB / 0.7117 GB, free: 50.49 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003276/0.4549, allocations: 0.8241 MB / 0.7125 GB, free: 50.12 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001313/0.455, allocations: 0.7182 MB / 0.7132 GB, free: 49.42 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004922/0.4555, allocations: 95.61 kB / 0.7133 GB, free: 49.41 MB / 0.545 GB Notification: Performance of SimCode: time 6.31e-07/0.4555, allocations: 0 / 0.7133 GB, free: 49.41 MB / 0.545 GB Notification: Performance of Templates: time 0.008503/0.464, allocations: 6.896 MB / 0.72 GB, free: 49.08 MB / 0.545 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)