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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 118.9 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 211.3 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.48/1.48, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002464/0.002464, allocations: 286.9 kB / 309.8 MB, free: 3.449 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.086/1.086, allocations: 180.6 MB / 0.5338 GB, free: 12.36 MB / 398.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00397/0.00397, allocations: 95.86 kB / 0.7347 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5126/0.5165, allocations: 95.35 MB / 0.8278 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001613/0.5181, allocations: 0.6106 MB / 0.8284 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.5195, allocations: 1.377 MB / 0.8298 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.735e-05/0.5195, allocations: 0 / 0.8298 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.658e-05/0.5195, allocations: 6.906 kB / 0.8298 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 1.81e-05/0.5195, allocations: 0 / 0.8298 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.5199, allocations: 83.77 kB / 0.8299 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 5.273e-05/0.52, allocations: 19.03 kB / 0.8299 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.938e-05/0.52, allocations: 3.547 kB / 0.8299 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.852e-05/0.52, allocations: 7.328 kB / 0.8299 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.198e-05/0.5201, allocations: 27.88 kB / 0.8299 GB, free: 1.578 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.638e-06/0.5201, allocations: 2.812 kB / 0.8299 GB, free: 1.578 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002509/0.5203, allocations: 114.3 kB / 0.83 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.319e-05/0.5203, allocations: 12.47 kB / 0.83 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.097e-05/0.5204, allocations: 12.08 kB / 0.8301 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.5205, allocations: 69.09 kB / 0.8301 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.5205, allocations: 3.938 kB / 0.8301 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.372e-06/0.5205, allocations: 0 / 0.8301 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.5205, allocations: 0 / 0.8301 GB, free: 1.512 MB / 0.5762 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.0003529/0.5209, allocations: 363.8 kB / 0.8305 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.5209, allocations: 9.062 kB / 0.8305 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.522e-05/0.5209, allocations: 3.844 kB / 0.8305 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.972e-05/0.5209, allocations: 40.19 kB / 0.8305 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.703e-05/0.521, allocations: 2.344 kB / 0.8305 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.338e-05/0.521, allocations: 163 kB / 0.8307 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.521, allocations: 1.078 kB / 0.8307 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.5211, allocations: 8.203 kB / 0.8307 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.5212, allocations: 58.69 kB / 0.8307 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.5212, allocations: 3.625 kB / 0.8307 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.5212, allocations: 0 / 0.8307 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.5212, allocations: 0 / 0.8307 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.85e-05/0.5213, allocations: 26.41 kB / 0.8308 GB, free: 0.832 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001204/0.5214, allocations: 167.9 kB / 0.8309 GB, free: 0.6328 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 9.631e-05/0.5215, allocations: 55.62 kB / 0.831 GB, free: 0.5977 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.809e-05/0.5215, allocations: 29.33 kB / 0.831 GB, free: 0.5781 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003573/0.5219, allocations: 0.5645 MB / 0.8316 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.5219, allocations: 30.56 kB / 0.8316 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.5219, allocations: 0 / 0.8316 GB, free: 15.88 MB / 0.5919 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.02012/0.542, allocations: 4.401 MB / 0.8359 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.5421, allocations: 55 kB / 0.8359 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.67e-05/0.5422, allocations: 94.78 kB / 0.836 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.412e-05/0.5422, allocations: 31.33 kB / 0.8361 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 3.686e-05/0.5423, allocations: 80.14 kB / 0.8361 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.5424, allocations: 67.45 kB / 0.8362 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002604/0.5427, allocations: 90.75 kB / 0.8363 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.5428, allocations: 322.6 kB / 0.8366 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005868/0.5434, allocations: 307.8 kB / 0.8369 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005451/0.5439, allocations: 316.4 kB / 0.8372 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/0.5456, allocations: 0.7696 MB / 0.8379 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.5456, allocations: 0 / 0.8379 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001758/0.5473, allocations: 0.8002 MB / 0.8387 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.5473, allocations: 5.344 kB / 0.8387 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.5473, allocations: 4.516 kB / 0.8387 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.5474, allocations: 1.188 kB / 0.8387 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008654/0.5482, allocations: 95.02 kB / 0.8388 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.5482, allocations: 0.9688 kB / 0.8388 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005424/0.5488, allocations: 9.156 kB / 0.8388 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.5489, allocations: 38.22 kB / 0.8389 GB, free: 12.41 MB / 0.5919 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.0002348/0.5491, allocations: 121.6 kB / 0.839 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.712e-05/0.5492, allocations: 6.891 kB / 0.839 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003475/0.5527, allocations: 1.397 MB / 0.8404 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.5527, allocations: 4 kB / 0.8404 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.5527, allocations: 4 kB / 0.8404 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.5527, allocations: 2.172 kB / 0.8404 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003473/0.5562, allocations: 1.818 MB / 0.8421 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.5562, allocations: 1.125 kB / 0.8421 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008655/0.557, allocations: 109.2 kB / 0.8422 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/0.557, allocations: 6.281 kB / 0.8423 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.749e-05/0.5571, allocations: 26.31 kB / 0.8423 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.5571, allocations: 3.266 kB / 0.8423 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.5571, allocations: 4.969 kB / 0.8423 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002655/0.5598, allocations: 1.46 MB / 0.8437 GB, free: 9.812 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.932e-05/0.5599, allocations: 91.59 kB / 0.8438 GB, free: 9.711 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.884e-05/0.56, allocations: 14.72 kB / 0.8438 GB, free: 9.699 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005357/0.5605, allocations: 9.875 kB / 0.8438 GB, free: 9.695 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.5607, allocations: 44.22 kB / 0.8439 GB, free: 9.691 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.49e-05/0.5607, allocations: 26.92 kB / 0.8439 GB, free: 9.691 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 4.726e-05/0.5608, allocations: 81.31 kB / 0.844 GB, free: 9.613 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.5608, allocations: 160 / 0.844 GB, free: 9.613 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006874/0.5615, allocations: 190.4 kB / 0.8442 GB, free: 9.578 MB / 0.5919 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.003428/0.5649, allocations: 2.144 MB / 0.8462 GB, free: 8.242 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001348/0.5662, allocations: 0.7142 MB / 0.8469 GB, free: 7.957 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5662, allocations: 5.25 kB / 0.8469 GB, free: 7.953 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006976/0.5669, allocations: 401.8 kB / 0.8473 GB, free: 7.789 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.5673, allocations: 20.67 kB / 0.8474 GB, free: 7.773 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008256/0.5755, allocations: 3.727 MB / 0.851 GB, free: 5.574 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/0.5759, allocations: 0.7148 MB / 0.8517 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0009976/0.5769, allocations: 294.4 kB / 0.852 GB, free: 4.727 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006067/0.5775, allocations: 117.8 kB / 0.8521 GB, free: 4.695 MB / 0.5919 GB Notification: Performance of SimCode: time 1.032e-06/0.5775, allocations: 0 / 0.8521 GB, free: 4.695 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03699/0.6145, allocations: 12.96 MB / 0.8647 GB, free: 15.87 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.485/9.1, allocations: 14.27 kB / 0.8648 GB, free: 15.86 MB / 0.6075 GB " [Timeout remaining time 651] (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 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.163541745045222] Failed to read output from testmodel.py, exit status != 0: 9.228731140028685 9.249402755 8.724836564 Calling exit ...