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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 191.7 kB / 16.53 MB, free: 6.391 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.115/1.115, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.536/1.536, allocations: 292.3 MB / 0.5489 GB, free: 13.52 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.001504/0.001504, allocations: 72.83 kB / 0.6716 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2723, allocations: 114.5 MB / 0.7835 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00202/0.2744, allocations: 0.6165 MB / 0.7841 GB, free: 12.83 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00171/0.2761, allocations: 1.307 MB / 0.7854 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.207e-05/0.2762, allocations: 4 kB / 0.7854 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.031e-05/0.2762, allocations: 0 / 0.7854 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.637e-05/0.2762, allocations: 0 / 0.7854 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.2767, allocations: 71.73 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.082e-05/0.2767, allocations: 19.98 kB / 0.7855 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.904e-05/0.2768, allocations: 4 kB / 0.7855 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.888e-05/0.2768, allocations: 19.92 kB / 0.7855 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.08e-05/0.2769, allocations: 11.98 kB / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.2769, allocations: 0 / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.2771, allocations: 103.8 kB / 0.7856 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.675e-05/0.2772, allocations: 3.984 kB / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.028e-05/0.2772, allocations: 11.94 kB / 0.7856 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000152/0.2774, allocations: 63.84 kB / 0.7857 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2774, allocations: 4 kB / 0.7857 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2774, allocations: 0 / 0.7857 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.2774, allocations: 4 kB / 0.7857 GB, free: 11.19 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.0004977/0.2779, allocations: 355.7 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.2779, allocations: 8.031 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.119e-05/0.278, allocations: 34.69 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.278, allocations: 4.938 kB / 0.7861 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.2782, allocations: 164.4 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.2782, allocations: 12.36 kB / 0.7862 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.238e-05/0.2782, allocations: 384 / 0.7862 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001364/0.2784, allocations: 61.75 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.2784, allocations: 0 / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.2784, allocations: 4 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.2784, allocations: 0 / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.987e-05/0.2785, allocations: 23.97 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000195/0.2787, allocations: 165.6 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.2788, allocations: 58.56 kB / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.099e-05/0.2789, allocations: 36.78 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004773/0.2794, allocations: 0.5505 MB / 0.7871 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.2794, allocations: 38.5 kB / 0.7871 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.2794, allocations: 4 kB / 0.7871 GB, free: 9.391 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.01974/0.2991, allocations: 4.311 MB / 0.7913 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.2992, allocations: 55.39 kB / 0.7914 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.737e-05/0.2993, allocations: 93.86 kB / 0.7915 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.39e-05/0.2994, allocations: 25.7 kB / 0.7915 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.098e-05/0.2995, allocations: 84.27 kB / 0.7916 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.2996, allocations: 67.12 kB / 0.7917 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002554/0.2999, allocations: 89.67 kB / 0.7917 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001751/0.3001, allocations: 322.8 kB / 0.7921 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005567/0.3006, allocations: 311.8 kB / 0.7924 GB, free: 3.855 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005192/0.3012, allocations: 310.4 kB / 0.7926 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/0.3027, allocations: 0.7507 MB / 0.7934 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3027, allocations: 0 / 0.7934 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001557/0.3043, allocations: 0.8008 MB / 0.7942 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.3043, allocations: 8 kB / 0.7942 GB, free: 1.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3043, allocations: 0 / 0.7942 GB, free: 1.988 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.3043, allocations: 0 / 0.7942 GB, free: 1.988 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000855/0.3052, allocations: 87.95 kB / 0.7943 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.3052, allocations: 4 kB / 0.7943 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005416/0.3058, allocations: 8 kB / 0.7943 GB, free: 1.891 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.087e-05/0.3058, allocations: 35.97 kB / 0.7943 GB, free: 1.855 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.0001904/0.306, allocations: 122.4 kB / 0.7944 GB, free: 1.727 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.323e-05/0.3061, allocations: 4 kB / 0.7944 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003285/0.3094, allocations: 1.391 MB / 0.7958 GB, free: 328 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.3094, allocations: 4 kB / 0.7958 GB, free: 324 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3095, allocations: 7.875 kB / 0.7958 GB, free: 316 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.3095, allocations: 3.984 kB / 0.7958 GB, free: 312 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002996/0.3125, allocations: 1.802 MB / 0.7976 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.3125, allocations: 7.984 kB / 0.7976 GB, free: 14.44 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008099/0.3133, allocations: 103.9 kB / 0.7977 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.3133, allocations: 0 / 0.7977 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.352e-05/0.3134, allocations: 43.95 kB / 0.7977 GB, free: 14.29 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.3134, allocations: 0 / 0.7977 GB, free: 14.29 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3134, allocations: 3.938 kB / 0.7977 GB, free: 14.29 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002309/0.3157, allocations: 1.453 MB / 0.7991 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.667e-05/0.3158, allocations: 88.98 kB / 0.7992 GB, free: 12.71 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.593e-05/0.3159, allocations: 11.94 kB / 0.7992 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000568/0.3165, allocations: 19.94 kB / 0.7992 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.3166, allocations: 40.03 kB / 0.7993 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-05/0.3167, allocations: 35.98 kB / 0.7993 GB, free: 12.61 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 4.105e-05/0.3168, allocations: 75.28 kB / 0.7994 GB, free: 12.53 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3168, allocations: 0 / 0.7994 GB, free: 12.53 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005624/0.3173, allocations: 172 kB / 0.7995 GB, free: 12.36 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.002987/0.3203, allocations: 2.123 MB / 0.8016 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001302/0.3217, allocations: 0.7417 MB / 0.8023 GB, free: 9.469 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3217, allocations: 0 / 0.8023 GB, free: 9.469 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006261/0.3223, allocations: 456 kB / 0.8028 GB, free: 9.023 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.3226, allocations: 16 kB / 0.8028 GB, free: 9.008 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007794/0.3304, allocations: 3.692 MB / 0.8064 GB, free: 5.234 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.3308, allocations: 0.718 MB / 0.8071 GB, free: 4.492 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001399/0.3322, allocations: 293.5 kB / 0.8074 GB, free: 4.207 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005572/0.3327, allocations: 119.4 kB / 0.8075 GB, free: 4.09 MB / 0.6231 GB Notification: Performance of SimCode: time 2.735e-06/0.3328, allocations: 0 / 0.8075 GB, free: 4.09 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03592/0.3687, allocations: 12.63 MB / 0.8198 GB, free: 7.641 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.211/7.58, allocations: 18.97 kB / 0.8198 GB, free: 7.625 MB / 0.6388 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)