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.001037/0.001037, allocations: 106.3 kB / 15.99 MB, free: 6.359 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.001079/0.001079, allocations: 196.5 kB / 16.91 MB, free: 6.191 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.376/1.376, allocations: 205.1 MB / 222.8 MB, free: 4.699 MB / 174.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.7/1.7, allocations: 292.3 MB / 0.5492 GB, free: 13.66 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.001391/0.001392, allocations: 71.06 kB / 0.6717 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2353, allocations: 114.5 MB / 0.7835 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001826/0.2372, allocations: 0.6743 MB / 0.7842 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.2387, allocations: 1.312 MB / 0.7855 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.078e-05/0.2388, allocations: 0 / 0.7855 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.374e-05/0.2388, allocations: 0 / 0.7855 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.085e-05/0.2388, allocations: 0 / 0.7855 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.2392, allocations: 63.81 kB / 0.7855 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 4.89e-05/0.2392, allocations: 19.98 kB / 0.7855 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.377e-05/0.2393, allocations: 4 kB / 0.7855 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.555e-05/0.2393, allocations: 15.92 kB / 0.7856 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.674e-05/0.2394, allocations: 15.97 kB / 0.7856 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 9.938e-06/0.2394, allocations: 3.938 kB / 0.7856 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001938/0.2396, allocations: 95.91 kB / 0.7857 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.37e-05/0.2396, allocations: 7.984 kB / 0.7857 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.003e-05/0.2396, allocations: 7.938 kB / 0.7857 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.2397, allocations: 43.94 kB / 0.7857 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.2398, allocations: 0 / 0.7857 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2398, allocations: 0 / 0.7857 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.2398, allocations: 4 kB / 0.7857 GB, free: 11.62 MB / 0.6075 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.0004166/0.2402, allocations: 347.8 kB / 0.7861 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.2402, allocations: 8.031 kB / 0.7861 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.083e-05/0.2403, allocations: 8.844 kB / 0.7861 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.2404, allocations: 164.3 kB / 0.7862 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.467e-06/0.2404, allocations: 4.375 kB / 0.7862 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.543e-05/0.2404, allocations: 8.359 kB / 0.7863 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.2406, allocations: 54 kB / 0.7863 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.2406, allocations: 3.984 kB / 0.7863 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.2406, allocations: 8 kB / 0.7863 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.2406, allocations: 0 / 0.7863 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.111e-05/0.2407, allocations: 19.98 kB / 0.7863 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001872/0.2409, allocations: 173.5 kB / 0.7865 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.241, allocations: 70.44 kB / 0.7866 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.127e-05/0.241, allocations: 24.84 kB / 0.7866 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004864/0.2415, allocations: 0.5622 MB / 0.7871 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.2416, allocations: 34.5 kB / 0.7872 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.253e-06/0.2416, allocations: 4 kB / 0.7872 GB, free: 9.855 MB / 0.6075 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.02051/0.2621, allocations: 4.3 MB / 0.7914 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.2622, allocations: 55.41 kB / 0.7914 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.198e-05/0.2622, allocations: 97.84 kB / 0.7915 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.262e-05/0.2623, allocations: 25.7 kB / 0.7915 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.96e-05/0.2624, allocations: 80.14 kB / 0.7916 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.2625, allocations: 59.33 kB / 0.7917 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002638/0.2627, allocations: 93.67 kB / 0.7918 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.2629, allocations: 318.8 kB / 0.7921 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005247/0.2634, allocations: 311.9 kB / 0.7924 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005127/0.2639, allocations: 315.7 kB / 0.7927 GB, free: 4.031 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.2654, allocations: 0.7531 MB / 0.7934 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.21e-07/0.2654, allocations: 0 / 0.7934 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001537/0.2669, allocations: 0.7903 MB / 0.7942 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.267, allocations: 6.812 kB / 0.7942 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.267, allocations: 4 kB / 0.7942 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.267, allocations: 7.922 kB / 0.7942 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008367/0.2678, allocations: 95.83 kB / 0.7943 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.2679, allocations: 4.938 kB / 0.7943 GB, free: 2.367 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004856/0.2683, allocations: 4 kB / 0.7943 GB, free: 2.363 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.14e-05/0.2684, allocations: 39.97 kB / 0.7943 GB, free: 2.324 MB / 0.6075 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.0002179/0.2687, allocations: 118.4 kB / 0.7944 GB, free: 2.199 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.701e-05/0.2688, allocations: 4 kB / 0.7945 GB, free: 2.195 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003389/0.2722, allocations: 1.391 MB / 0.7958 GB, free: 0.793 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-06/0.2722, allocations: 4 kB / 0.7958 GB, free: 0.7891 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.2722, allocations: 0 / 0.7958 GB, free: 0.7891 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.2722, allocations: 3.984 kB / 0.7958 GB, free: 0.7852 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003169/0.2754, allocations: 1.81 MB / 0.7976 GB, free: 14.92 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.2754, allocations: 4 kB / 0.7976 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007529/0.2762, allocations: 103.9 kB / 0.7977 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.2762, allocations: 0 / 0.7977 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.39e-05/0.2763, allocations: 35.92 kB / 0.7977 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.2763, allocations: 4.031 kB / 0.7977 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.2763, allocations: 0 / 0.7977 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002358/0.2786, allocations: 1.457 MB / 0.7991 GB, free: 13.3 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.644e-05/0.2787, allocations: 96.95 kB / 0.7992 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.194e-05/0.2788, allocations: 11.94 kB / 0.7993 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004789/0.2793, allocations: 16 kB / 0.7993 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.2795, allocations: 40.03 kB / 0.7993 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.731e-05/0.2795, allocations: 36 kB / 0.7993 GB, free: 13.08 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 4.106e-05/0.2796, allocations: 75.28 kB / 0.7994 GB, free: 13.01 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2796, allocations: 0 / 0.7994 GB, free: 13.01 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005815/0.2802, allocations: 176 kB / 0.7996 GB, free: 12.84 MB / 0.6231 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.0004957/0.2807, allocations: 219.4 kB / 0.7998 GB, free: 12.61 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001231/0.2819, allocations: 0.7456 MB / 0.8005 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2819, allocations: 4.094 kB / 0.8005 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006722/0.2826, allocations: 451.8 kB / 0.801 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.283, allocations: 19.38 kB / 0.801 GB, free: 11.41 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00319/0.2861, allocations: 0.8844 MB / 0.8018 GB, free: 10.49 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.2865, allocations: 0.718 MB / 0.8025 GB, free: 9.746 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005609/0.287, allocations: 91.41 kB / 0.8026 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of SimCode: time 4.91e-07/0.287, allocations: 0 / 0.8026 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of Templates: time 0.01137/0.2984, allocations: 6.848 MB / 0.8093 GB, free: 2.859 MB / 0.6231 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 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)