Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001711/0.001711, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001911/0.001911, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.825/2.825, allocations: 476.7 MB / 0.7611 GB, free: 11.3 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 63.89 kB / 1.104 GB, free: 9.172 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8674/0.8693, allocations: 168.7 MB / 1.269 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002102/0.8714, allocations: 0.6031 MB / 1.269 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002045/0.8735, allocations: 1.293 MB / 1.271 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.335e-05/0.8735, allocations: 0 / 1.271 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.331e-05/0.8735, allocations: 7.938 kB / 1.271 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.215e-05/0.8736, allocations: 0 / 1.271 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004786/0.874, allocations: 75.72 kB / 1.271 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.391e-05/0.8741, allocations: 27.86 kB / 1.271 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.415e-05/0.8742, allocations: 4 kB / 1.271 GB, free: 3.105 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.37e-05/0.8742, allocations: 11.92 kB / 1.271 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.685e-05/0.8743, allocations: 19.91 kB / 1.271 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.587e-05/0.8743, allocations: 4 kB / 1.271 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002382/0.8745, allocations: 91.91 kB / 1.271 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.071e-05/0.8745, allocations: 15.97 kB / 1.271 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.866e-05/0.8746, allocations: 11.94 kB / 1.271 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.8747, allocations: 65.62 kB / 1.271 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.8747, allocations: 0 / 1.271 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.013e-06/0.8747, allocations: 0 / 1.271 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.8748, allocations: 0 / 1.271 GB, free: 2.891 MB / 0.9669 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.0005341/0.8753, allocations: 351.3 kB / 1.271 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.8753, allocations: 8.031 kB / 1.271 GB, free: 2.492 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.73e-05/0.8754, allocations: 46.73 kB / 1.271 GB, free: 2.438 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.991e-05/0.8754, allocations: 4.938 kB / 1.271 GB, free: 2.434 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.8756, allocations: 164.4 kB / 1.272 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.8756, allocations: 4.312 kB / 1.272 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.14e-05/0.8756, allocations: 16.27 kB / 1.272 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000134/0.8757, allocations: 53.8 kB / 1.272 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.8758, allocations: 4 kB / 1.272 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.8758, allocations: 0 / 1.272 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.8758, allocations: 0 / 1.272 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.981e-05/0.8758, allocations: 23.98 kB / 1.272 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002616/0.8761, allocations: 173.6 kB / 1.272 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.8762, allocations: 62.48 kB / 1.272 GB, free: 1.84 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.941e-05/0.8763, allocations: 20.84 kB / 1.272 GB, free: 1.816 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006686/0.877, allocations: 0.5583 MB / 1.272 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.877, allocations: 42.5 kB / 1.272 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.877, allocations: 0 / 1.272 GB, free: 1.078 MB / 0.9669 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.01986/0.8969, allocations: 4.368 MB / 1.277 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.8969, allocations: 59.41 kB / 1.277 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.412e-05/0.897, allocations: 89.86 kB / 1.277 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 7.321e-05/0.8971, allocations: 29.7 kB / 1.277 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.92e-05/0.8971, allocations: 80.14 kB / 1.277 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.8972, allocations: 67.41 kB / 1.277 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002401/0.8975, allocations: 93.66 kB / 1.277 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.8976, allocations: 318.8 kB / 1.277 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005599/0.8982, allocations: 312 kB / 1.278 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005393/0.8987, allocations: 317.7 kB / 1.278 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001611/0.9003, allocations: 0.7662 MB / 1.279 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.9003, allocations: 0 / 1.279 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001623/0.902, allocations: 0.8036 MB / 1.28 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.902, allocations: 4 kB / 1.28 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.902, allocations: 0 / 1.28 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.902, allocations: 0 / 1.28 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007836/0.9028, allocations: 99.89 kB / 1.28 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.9028, allocations: 0 / 1.28 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004565/0.9032, allocations: 4 kB / 1.28 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.669e-05/0.9033, allocations: 39.97 kB / 1.28 GB, free: 9.449 MB / 0.9825 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.0001979/0.9035, allocations: 122.3 kB / 1.28 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.617e-05/0.9036, allocations: 7.953 kB / 1.28 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003221/0.9068, allocations: 1.399 MB / 1.281 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.9068, allocations: 4 kB / 1.281 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.9068, allocations: 0 / 1.281 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.9068, allocations: 3.984 kB / 1.281 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003481/0.9103, allocations: 1.825 MB / 1.283 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.9103, allocations: 3.938 kB / 1.283 GB, free: 6 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008056/0.9111, allocations: 111.9 kB / 1.283 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.9111, allocations: 0 / 1.283 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.098e-05/0.9112, allocations: 35.95 kB / 1.283 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.169e-05/0.9112, allocations: 8 kB / 1.283 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.9112, allocations: 0 / 1.283 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002688/0.9139, allocations: 1.47 MB / 1.285 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.383e-05/0.914, allocations: 89.03 kB / 1.285 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.949e-05/0.9141, allocations: 11.94 kB / 1.285 GB, free: 4.242 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004842/0.9146, allocations: 12 kB / 1.285 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.9147, allocations: 44.03 kB / 1.285 GB, free: 4.188 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.951e-05/0.9148, allocations: 35.98 kB / 1.285 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.653e-05/0.9148, allocations: 75.28 kB / 1.285 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.9148, allocations: 0 / 1.285 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0006596/0.9155, allocations: 179.7 kB / 1.285 GB, free: 3.902 MB / 0.9825 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.003565/0.9191, allocations: 2.127 MB / 1.287 GB, free: 1.746 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001349/0.9204, allocations: 0.7145 MB / 1.288 GB, free: 1.031 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.9204, allocations: 0 / 1.288 GB, free: 1.031 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000667/0.9211, allocations: 407.6 kB / 1.288 GB, free: 0.6328 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.9214, allocations: 21.5 kB / 1.288 GB, free: 0.6133 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008014/0.9294, allocations: 3.732 MB / 1.292 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003917/0.9298, allocations: 0.7181 MB / 1.293 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001101/0.9309, allocations: 293.5 kB / 1.293 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000572/0.9315, allocations: 115.4 kB / 1.293 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of SimCode: time 1.222e-06/0.9315, allocations: 0 / 1.293 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04451/0.976, allocations: 12.74 MB / 1.305 GB, free: 15.1 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.356/9.332, allocations: 14.16 kB / 1.305 GB, free: 15.09 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 15.322374111041427] Failed to read output from testmodel.py, exit status != 0: 9.407457623630762 9.422390032 8.544513651 Calling exit ...