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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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.001142/0.001142, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001167/0.001167, allocations: 195.9 kB / 16.14 MB, free: 6.668 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.212/1.212, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001865/0.001865, allocations: 279.1 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8704/0.8704, allocations: 169.2 MB / 0.4977 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 100.1 kB / 0.5946 GB, free: 28.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2049, allocations: 86.98 MB / 0.6796 GB, free: 1.07 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001938/0.2069, allocations: 0.6779 MB / 0.6802 GB, free: 408 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.2084, allocations: 1.28 MB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.525e-05/0.2085, allocations: 8 kB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.922e-05/0.2085, allocations: 0 / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.915e-05/0.2085, allocations: 3.938 kB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003137/0.2089, allocations: 51.88 kB / 0.6815 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.913e-05/0.2089, allocations: 19.98 kB / 0.6816 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.753e-05/0.209, allocations: 4.266 kB / 0.6816 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.312e-05/0.209, allocations: 12 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.839e-05/0.209, allocations: 19.84 kB / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.066e-05/0.2091, allocations: 0 / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002049/0.2093, allocations: 103.9 kB / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.683e-05/0.2093, allocations: 11.97 kB / 0.6817 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.334e-05/0.2093, allocations: 15.88 kB / 0.6817 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001232/0.2095, allocations: 59.91 kB / 0.6818 GB, free: 14.8 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2095, allocations: 0 / 0.6818 GB, free: 14.8 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.2095, allocations: 0 / 0.6818 GB, free: 14.8 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.349e-06/0.2095, allocations: 4 kB / 0.6818 GB, free: 14.79 MB / 494.1 MB 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.0004388/0.2099, allocations: 355.5 kB / 0.6821 GB, free: 14.4 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.21, allocations: 8.031 kB / 0.6821 GB, free: 14.39 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.531e-05/0.21, allocations: 34.75 kB / 0.6822 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.037e-05/0.21, allocations: 8.844 kB / 0.6822 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.2102, allocations: 164.4 kB / 0.6823 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.2102, allocations: 384 / 0.6823 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.2102, allocations: 8.312 kB / 0.6823 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.2103, allocations: 61.78 kB / 0.6824 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.2103, allocations: 0 / 0.6824 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.2104, allocations: 0 / 0.6824 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.2104, allocations: 4 kB / 0.6824 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.004e-05/0.2104, allocations: 23.98 kB / 0.6824 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001639/0.2106, allocations: 161.7 kB / 0.6826 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.2107, allocations: 66.48 kB / 0.6826 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.591e-05/0.2108, allocations: 20.86 kB / 0.6826 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004535/0.2112, allocations: 0.5583 MB / 0.6832 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.2113, allocations: 42.5 kB / 0.6832 GB, free: 13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.2113, allocations: 3.938 kB / 0.6832 GB, free: 12.99 MB / 494.1 MB 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.01878/0.2301, allocations: 4.381 MB / 0.6875 GB, free: 8.465 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.2301, allocations: 59.41 kB / 0.6876 GB, free: 8.395 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.368e-05/0.2302, allocations: 89.86 kB / 0.6877 GB, free: 8.297 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.832e-05/0.2303, allocations: 33.7 kB / 0.6877 GB, free: 8.258 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.01e-05/0.2303, allocations: 80.14 kB / 0.6878 GB, free: 8.176 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.2304, allocations: 51.25 kB / 0.6878 GB, free: 8.125 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/0.2307, allocations: 93.66 kB / 0.6879 GB, free: 8.027 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2308, allocations: 322.8 kB / 0.6882 GB, free: 7.703 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000509/0.2313, allocations: 319.9 kB / 0.6885 GB, free: 7.391 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004874/0.2318, allocations: 313.4 kB / 0.6888 GB, free: 7.086 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.2332, allocations: 0.772 MB / 0.6896 GB, free: 6.312 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.2332, allocations: 0 / 0.6896 GB, free: 6.312 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001511/0.2348, allocations: 0.7981 MB / 0.6904 GB, free: 5.508 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.2348, allocations: 4 kB / 0.6904 GB, free: 5.504 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.2348, allocations: 4 kB / 0.6904 GB, free: 5.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.2348, allocations: 0 / 0.6904 GB, free: 5.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007116/0.2355, allocations: 95.88 kB / 0.6905 GB, free: 5.406 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.2356, allocations: 0 / 0.6905 GB, free: 5.406 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004231/0.236, allocations: 16 kB / 0.6905 GB, free: 5.391 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.904e-05/0.2361, allocations: 27.98 kB / 0.6905 GB, free: 5.363 MB / 494.1 MB 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.0001842/0.2363, allocations: 123.1 kB / 0.6906 GB, free: 5.234 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.953e-05/0.2363, allocations: 4 kB / 0.6906 GB, free: 5.23 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003119/0.2395, allocations: 1.403 MB / 0.692 GB, free: 3.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.2395, allocations: 4 kB / 0.692 GB, free: 3.816 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2395, allocations: 0 / 0.692 GB, free: 3.816 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.2395, allocations: 8 kB / 0.692 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002696/0.2422, allocations: 1.813 MB / 0.6938 GB, free: 1.941 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.2422, allocations: 4 kB / 0.6938 GB, free: 1.938 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006925/0.2429, allocations: 115.8 kB / 0.6939 GB, free: 1.824 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2429, allocations: 0 / 0.6939 GB, free: 1.824 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.239e-05/0.243, allocations: 31.94 kB / 0.6939 GB, free: 1.793 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.243, allocations: 0 / 0.6939 GB, free: 1.793 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.243, allocations: 0 / 0.6939 GB, free: 1.793 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00226/0.2453, allocations: 1.481 MB / 0.6954 GB, free: 300 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.563e-05/0.2454, allocations: 88.95 kB / 0.6954 GB, free: 192 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.171e-05/0.2455, allocations: 7.938 kB / 0.6954 GB, free: 184 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.2459, allocations: 12 kB / 0.6955 GB, free: 172 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.2461, allocations: 43.97 kB / 0.6955 GB, free: 128 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.15e-05/0.2461, allocations: 27.98 kB / 0.6955 GB, free: 100 kB / 494.1 MB Notification: Performance of sorting global known variables: time 3.469e-05/0.2462, allocations: 79.28 kB / 0.6956 GB, free: 20 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2462, allocations: 8.156 kB / 0.6956 GB, free: 12 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005906/0.2468, allocations: 172 kB / 0.6958 GB, free: 15.84 MB / 0.4981 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.002982/0.2498, allocations: 2.131 MB / 0.6979 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001254/0.251, allocations: 0.7244 MB / 0.6986 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2511, allocations: 4.062 kB / 0.6986 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006819/0.2517, allocations: 447.8 kB / 0.699 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.2521, allocations: 20 kB / 0.699 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007326/0.2595, allocations: 3.766 MB / 0.7027 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.2598, allocations: 0.7184 MB / 0.7034 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001379/0.2612, allocations: 290.5 kB / 0.7037 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005814/0.2618, allocations: 119.4 kB / 0.7038 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of SimCode: time 6.12e-07/0.2618, allocations: 0 / 0.7038 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2984/0.5602, allocations: 12.09 MB / 0.7156 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002189/0.5605, allocations: 238.4 kB / 0.7158 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.928/2.488, allocations: 4 kB / 0.7158 GB, free: 11.38 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)