Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.0009518/0.0009518, allocations: 104.5 kB / 16.29 MB, free: 6.023 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.0009814/0.0009815, allocations: 185.6 kB / 17.22 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.198/1.198, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.62/1.62, allocations: 292.3 MB / 0.5495 GB, free: 17.54 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 79.89 kB / 0.6722 GB, free: 6.539 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1957/0.1971, allocations: 114.6 MB / 0.7841 GB, free: 3.871 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001598/0.1987, allocations: 0.6135 MB / 0.7847 GB, free: 3.246 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001392/0.2001, allocations: 1.307 MB / 0.786 GB, free: 1.922 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.934e-05/0.2001, allocations: 0 / 0.786 GB, free: 1.922 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.2002, allocations: 3.938 kB / 0.786 GB, free: 1.918 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 1.943e-05/0.2002, allocations: 8 kB / 0.786 GB, free: 1.91 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003336/0.2005, allocations: 75.72 kB / 0.7861 GB, free: 1.836 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 4.517e-05/0.2006, allocations: 15.98 kB / 0.7861 GB, free: 1.82 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 3.26e-05/0.2006, allocations: 4 kB / 0.7861 GB, free: 1.816 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 1.9e-05/0.2006, allocations: 7.938 kB / 0.7861 GB, free: 1.809 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 5.473e-05/0.2007, allocations: 19.91 kB / 0.7861 GB, free: 1.789 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.2007, allocations: 4 kB / 0.7861 GB, free: 1.785 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001791/0.2009, allocations: 91.91 kB / 0.7862 GB, free: 1.695 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.446e-05/0.2009, allocations: 15.97 kB / 0.7862 GB, free: 1.68 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.973e-05/0.201, allocations: 11.94 kB / 0.7862 GB, free: 1.668 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001206/0.2011, allocations: 59.86 kB / 0.7863 GB, free: 1.609 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.2011, allocations: 0 / 0.7863 GB, free: 1.609 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.283e-06/0.2011, allocations: 0 / 0.7863 GB, free: 1.609 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.2011, allocations: 4 kB / 0.7863 GB, free: 1.605 MB / 0.6544 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.0003708/0.2015, allocations: 347.8 kB / 0.7866 GB, free: 1.219 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.2015, allocations: 8.031 kB / 0.7866 GB, free: 1.211 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.87e-05/0.2016, allocations: 4.844 kB / 0.7866 GB, free: 1.207 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.346e-05/0.2017, allocations: 172.3 kB / 0.7868 GB, free: 1 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.2017, allocations: 8.359 kB / 0.7868 GB, free: 0.9922 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.2017, allocations: 4.375 kB / 0.7868 GB, free: 0.9883 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.2018, allocations: 54 kB / 0.7868 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.2018, allocations: 3.938 kB / 0.7869 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.2018, allocations: 0 / 0.7869 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.2018, allocations: 0 / 0.7869 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.685e-05/0.2019, allocations: 27.97 kB / 0.7869 GB, free: 0.8984 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001484/0.2021, allocations: 165.7 kB / 0.787 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 9.484e-05/0.2022, allocations: 62.5 kB / 0.7871 GB, free: 0.6172 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.762e-05/0.2022, allocations: 28.84 kB / 0.7871 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.304/0.5062, allocations: 0.5506 MB / 0.7877 GB, free: 48.69 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.5062, allocations: 35.72 kB / 0.7877 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 1.894e-06/0.5062, allocations: 1.938 kB / 0.7877 GB, free: 48.65 MB / 0.6544 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.0162/0.5224, allocations: 4.299 MB / 0.7919 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.912e-05/0.5225, allocations: 57.17 kB / 0.7919 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.994e-05/0.5225, allocations: 96.42 kB / 0.792 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.527e-05/0.5226, allocations: 25.83 kB / 0.7921 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 1.053e-05/0.5226, allocations: 84.14 kB / 0.7921 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 7.755e-05/0.5227, allocations: 56.73 kB / 0.7922 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/0.5229, allocations: 94.88 kB / 0.7923 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 3.794e-05/0.523, allocations: 320.8 kB / 0.7926 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004146/0.5234, allocations: 312.2 kB / 0.7929 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003994/0.5238, allocations: 310.1 kB / 0.7932 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.5249, allocations: 0.7553 MB / 0.7939 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/0.525, allocations: 0 / 0.7939 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001221/0.5262, allocations: 0.7903 MB / 0.7947 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.5262, allocations: 6.781 kB / 0.7947 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.5262, allocations: 0 / 0.7947 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.5262, allocations: 5.625 kB / 0.7947 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006537/0.5269, allocations: 91.42 kB / 0.7948 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.5269, allocations: 2.438 kB / 0.7948 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004065/0.5273, allocations: 12.31 kB / 0.7948 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-05/0.5274, allocations: 37.27 kB / 0.7948 GB, free: 47.02 MB / 0.6544 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.0001345/0.5275, allocations: 116.4 kB / 0.795 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.356e-05/0.5276, allocations: 10.12 kB / 0.795 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002578/0.5302, allocations: 1.398 MB / 0.7963 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.5302, allocations: 3.281 kB / 0.7963 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.5302, allocations: 2.281 kB / 0.7963 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.5302, allocations: 5.25 kB / 0.7963 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/0.5325, allocations: 1.8 MB / 0.7981 GB, free: 45.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.5325, allocations: 3.812 kB / 0.7981 GB, free: 45.26 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006575/0.5332, allocations: 115.1 kB / 0.7982 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.5332, allocations: 0 / 0.7982 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-05/0.5333, allocations: 32.3 kB / 0.7982 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.5333, allocations: 0 / 0.7982 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5333, allocations: 1.656 kB / 0.7982 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002005/0.5353, allocations: 1.459 MB / 0.7997 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.403e-05/0.5353, allocations: 101.7 kB / 0.7998 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.88e-05/0.5354, allocations: 6.375 kB / 0.7998 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004188/0.5358, allocations: 13.91 kB / 0.7998 GB, free: 44.37 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.536, allocations: 43.38 kB / 0.7998 GB, free: 44.37 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.996e-05/0.536, allocations: 30.16 kB / 0.7999 GB, free: 44.37 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 1.919e-05/0.5361, allocations: 83.36 kB / 0.7999 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5361, allocations: 0 / 0.7999 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0005233/0.5366, allocations: 168 kB / 0.8001 GB, free: 44.28 MB / 0.6544 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.0004356/0.537, allocations: 229.7 kB / 0.8003 GB, free: 44.17 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001197/0.5383, allocations: 0.7221 MB / 0.801 GB, free: 43.88 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.5383, allocations: 0 / 0.801 GB, free: 43.88 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0006531/0.5389, allocations: 452.1 kB / 0.8015 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.5392, allocations: 21.16 kB / 0.8015 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002822/0.5421, allocations: 0.7944 MB / 0.8023 GB, free: 43.33 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.5422, allocations: 0.7142 MB / 0.8029 GB, free: 42.62 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0008518/0.543, allocations: 296.3 kB / 0.8032 GB, free: 42.48 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000504/0.5436, allocations: 93.09 kB / 0.8033 GB, free: 42.46 MB / 0.6544 GB Notification: Performance of SimCode: time 6.21e-07/0.5436, allocations: 0 / 0.8033 GB, free: 42.46 MB / 0.6544 GB Notification: Performance of Templates: time 0.0189/0.5625, allocations: 11.2 MB / 0.8143 GB, free: 41.87 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)