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.0009401/0.0009401, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001225/0.001225, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.761/1.761, allocations: 205.4 MB / 222.1 MB, free: 5.469 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.798/1.798, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0005373/0.0005373, allocations: 22.31 kB / 0.6738 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.254, allocations: 116.3 MB / 0.7874 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0007772/0.2548, allocations: 343.6 kB / 0.7877 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001612/0.2564, allocations: 1.274 MB / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.597e-05/0.2564, allocations: 0 / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.189e-05/0.2565, allocations: 3.938 kB / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.327e-05/0.2565, allocations: 0 / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.2568, allocations: 51.88 kB / 0.789 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 4.91e-05/0.2569, allocations: 15.98 kB / 0.789 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.822e-05/0.2569, allocations: 3.984 kB / 0.7891 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.516e-05/0.2569, allocations: 15.94 kB / 0.7891 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.858e-05/0.257, allocations: 15.98 kB / 0.7891 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.018e-05/0.257, allocations: 0 / 0.7891 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001939/0.2572, allocations: 99.83 kB / 0.7892 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.116e-05/0.2572, allocations: 7.984 kB / 0.7892 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.385e-05/0.2573, allocations: 29.7 kB / 0.7892 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.853e-05/0.2574, allocations: 35.95 kB / 0.7892 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2574, allocations: 0 / 0.7892 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2574, allocations: 4 kB / 0.7893 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.2574, allocations: 0 / 0.7893 GB, free: 9.918 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.0003914/0.2578, allocations: 351.5 kB / 0.7896 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.2578, allocations: 8.031 kB / 0.7896 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.729e-05/0.2579, allocations: 34.56 kB / 0.7896 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.365e-05/0.2579, allocations: 4 kB / 0.7896 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.258, allocations: 167 kB / 0.7898 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.258, allocations: 11.97 kB / 0.7898 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.108e-05/0.2581, allocations: 4 kB / 0.7898 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001193/0.2582, allocations: 49.69 kB / 0.7899 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.2582, allocations: 0 / 0.7899 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.2582, allocations: 8 kB / 0.7899 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2582, allocations: 0 / 0.7899 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.752e-05/0.2583, allocations: 27.95 kB / 0.7899 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002094/0.2585, allocations: 169.5 kB / 0.79 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.2587, allocations: 62.5 kB / 0.7901 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.916e-05/0.2587, allocations: 20.84 kB / 0.7901 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004973/0.2592, allocations: 0.5622 MB / 0.7907 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.2593, allocations: 30.56 kB / 0.7907 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.2593, allocations: 0 / 0.7907 GB, free: 8.125 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.01667/0.2759, allocations: 4.22 MB / 0.7948 GB, free: 3.754 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.276, allocations: 59.41 kB / 0.7949 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.544e-05/0.2761, allocations: 89.86 kB / 0.795 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.731e-05/0.2762, allocations: 33.7 kB / 0.795 GB, free: 3.547 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.887e-05/0.2762, allocations: 80.14 kB / 0.7951 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.935e-05/0.2763, allocations: 55.19 kB / 0.7951 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.195e-05/0.2764, allocations: 8 kB / 0.7951 GB, free: 3.402 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.2765, allocations: 314.8 kB / 0.7954 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004891/0.277, allocations: 311.9 kB / 0.7957 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004893/0.2775, allocations: 318.8 kB / 0.796 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007392/0.2782, allocations: 383.9 kB / 0.7964 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.2783, allocations: 0 / 0.7964 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001582/0.2798, allocations: 0.7826 MB / 0.7972 GB, free: 1.309 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.2799, allocations: 4 kB / 0.7972 GB, free: 1.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2799, allocations: 0 / 0.7972 GB, free: 1.305 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2799, allocations: 0 / 0.7972 GB, free: 1.305 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006821/0.2806, allocations: 99.88 kB / 0.7973 GB, free: 1.207 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.2806, allocations: 4.891 kB / 0.7973 GB, free: 1.203 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003616/0.281, allocations: 8 kB / 0.7973 GB, free: 1.195 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.101e-05/0.2811, allocations: 39.97 kB / 0.7973 GB, free: 1.156 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001706/0.2812, allocations: 114.5 kB / 0.7974 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.147e-05/0.2813, allocations: 7.906 kB / 0.7974 GB, free: 1.027 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003421/0.2847, allocations: 1.395 MB / 0.7988 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.2848, allocations: 4 kB / 0.7988 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.2848, allocations: 0 / 0.7988 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2848, allocations: 7.938 kB / 0.7988 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003/0.2878, allocations: 1.798 MB / 0.8006 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.2878, allocations: 3.953 kB / 0.8006 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006657/0.2885, allocations: 107.9 kB / 0.8007 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.2885, allocations: 0 / 0.8007 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.2886, allocations: 32 kB / 0.8007 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.2886, allocations: 0 / 0.8007 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.2886, allocations: 8.016 kB / 0.8007 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002362/0.291, allocations: 1.445 MB / 0.8021 GB, free: 12.14 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 4.897e-05/0.2911, allocations: 96.84 kB / 0.8022 GB, free: 12.02 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.2912, allocations: 11.98 kB / 0.8022 GB, free: 12.01 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/0.2916, allocations: 12 kB / 0.8022 GB, free: 12 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.2917, allocations: 39.97 kB / 0.8023 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.366e-05/0.2918, allocations: 36.06 kB / 0.8023 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 3.888e-05/0.2918, allocations: 75.28 kB / 0.8024 GB, free: 11.85 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2918, allocations: 0 / 0.8024 GB, free: 11.85 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006025/0.2924, allocations: 176 kB / 0.8026 GB, free: 11.68 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 (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.003367/0.2958, allocations: 2.131 MB / 0.8046 GB, free: 9.52 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001296/0.2971, allocations: 0.7184 MB / 0.8053 GB, free: 8.801 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.2971, allocations: 0 / 0.8053 GB, free: 8.801 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006829/0.2978, allocations: 451.7 kB / 0.8058 GB, free: 8.359 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.2982, allocations: 20 kB / 0.8058 GB, free: 8.34 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005153/0.3033, allocations: 2.136 MB / 0.8079 GB, free: 6.16 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.3037, allocations: 0.7185 MB / 0.8086 GB, free: 5.418 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001545/0.3052, allocations: 297.5 kB / 0.8089 GB, free: 5.129 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000579/0.3058, allocations: 123.4 kB / 0.809 GB, free: 5.008 MB / 0.6231 GB Notification: Performance of SimCode: time 1.042e-06/0.3058, allocations: 3.938 kB / 0.809 GB, free: 5.004 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.3323, allocations: 11.64 MB / 0.8203 GB, free: 9.594 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003241/0.3326, allocations: 208.1 kB / 0.8205 GB, free: 9.355 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.299, allocations: 4 kB / 0.8205 GB, free: 9.352 MB / 0.6387 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/linux/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) Environment - environmentSimulation: