Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.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.001825/0.001825, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00248/0.00248, allocations: 208.9 kB / 22.24 MB, free: 5.262 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.582/1.582, allocations: 230.6 MB / 256 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.35/3.35, allocations: 0.4892 GB / 0.7943 GB, free: 35.51 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings 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.002063/0.002063, allocations: 73.27 kB / 1.153 GB, free: 25.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3466, allocations: 176.1 MB / 1.325 GB, free: 2.316 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002176/0.3488, allocations: 0.6236 MB / 1.326 GB, free: 1.699 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002315/0.3511, allocations: 1.307 MB / 1.327 GB, free: 384 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.858e-05/0.3512, allocations: 4 kB / 1.327 GB, free: 380 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.937e-05/0.3512, allocations: 3.938 kB / 1.327 GB, free: 376 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 2.809e-05/0.3512, allocations: 0 / 1.327 GB, free: 376 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006612/0.3519, allocations: 87.66 kB / 1.327 GB, free: 288 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.699e-05/0.352, allocations: 27.92 kB / 1.327 GB, free: 260 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 7.145e-05/0.3521, allocations: 0 / 1.327 GB, free: 260 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 3.576e-05/0.3521, allocations: 11.98 kB / 1.327 GB, free: 248 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.3522, allocations: 15.92 kB / 1.327 GB, free: 232 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.3522, allocations: 0 / 1.327 GB, free: 232 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003679/0.3526, allocations: 111.9 kB / 1.327 GB, free: 120 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.021e-05/0.3526, allocations: 4 kB / 1.327 GB, free: 116 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.826e-05/0.3526, allocations: 11.92 kB / 1.327 GB, free: 104 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001835/0.3528, allocations: 80 kB / 1.327 GB, free: 24 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3528, allocations: 0 / 1.327 GB, free: 24 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3528, allocations: 4 kB / 1.327 GB, free: 20 kB / 1.014 GB Notification: Performance of Transformations before backend: time 1.046e-05/0.3528, allocations: 0 / 1.327 GB, free: 20 kB / 1.014 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.0005196/0.3534, allocations: 278.2 kB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.3534, allocations: 8.031 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.776e-05/0.3534, allocations: 38.73 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.17e-05/0.3535, allocations: 4.938 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.3536, allocations: 106.5 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.3536, allocations: 8.375 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.3536, allocations: 4.375 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/0.3538, allocations: 91.48 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.3538, allocations: 3.938 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3538, allocations: 3.938 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.3538, allocations: 0 / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.703e-05/0.3539, allocations: 19.98 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000207/0.3541, allocations: 148.6 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002474/0.3544, allocations: 58.5 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.31e-05/0.3544, allocations: 16.86 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002665/0.3547, allocations: 47.95 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.3547, allocations: 38.5 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.3547, allocations: 0 / 1.328 GB, free: 15.02 MB / 1.029 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.01963/0.3743, allocations: 4.151 MB / 1.332 GB, free: 10.77 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.3744, allocations: 51.41 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.587e-05/0.3745, allocations: 97.86 kB / 1.332 GB, free: 10.61 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 7.788e-05/0.3745, allocations: 29.7 kB / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.869e-05/0.3746, allocations: 80.14 kB / 1.332 GB, free: 10.49 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.3747, allocations: 59.48 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/0.3749, allocations: 89.66 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3751, allocations: 326.7 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005425/0.3756, allocations: 311.9 kB / 1.333 GB, free: 9.703 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006145/0.3762, allocations: 311.8 kB / 1.334 GB, free: 9.398 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.3778, allocations: 0.7718 MB / 1.334 GB, free: 8.625 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3778, allocations: 7.938 kB / 1.334 GB, free: 8.617 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001596/0.3794, allocations: 0.8038 MB / 1.335 GB, free: 7.809 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3794, allocations: 4 kB / 1.335 GB, free: 7.805 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.3794, allocations: 0 / 1.335 GB, free: 7.805 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.3795, allocations: 3.984 kB / 1.335 GB, free: 7.801 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008412/0.3803, allocations: 95.88 kB / 1.335 GB, free: 7.707 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.3803, allocations: 4 kB / 1.335 GB, free: 7.703 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005275/0.3808, allocations: 8 kB / 1.335 GB, free: 7.695 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.238e-05/0.3809, allocations: 31.98 kB / 1.335 GB, free: 7.664 MB / 1.029 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.0002041/0.3811, allocations: 121.8 kB / 1.335 GB, free: 7.535 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.738e-05/0.3812, allocations: 7.953 kB / 1.335 GB, free: 7.527 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00313/0.3843, allocations: 1.403 MB / 1.337 GB, free: 6.109 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.3843, allocations: 4 kB / 1.337 GB, free: 6.105 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3843, allocations: 4 kB / 1.337 GB, free: 6.102 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3843, allocations: 0 / 1.337 GB, free: 6.102 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003194/0.3875, allocations: 1.704 MB / 1.338 GB, free: 4.34 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.3875, allocations: 0 / 1.338 GB, free: 4.34 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000827/0.3884, allocations: 103.9 kB / 1.338 GB, free: 4.238 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.3884, allocations: 4 kB / 1.338 GB, free: 4.234 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/0.3885, allocations: 35.92 kB / 1.339 GB, free: 4.199 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.817e-06/0.3885, allocations: 4 kB / 1.339 GB, free: 4.195 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.3885, allocations: 0 / 1.339 GB, free: 4.195 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002782/0.3913, allocations: 1.466 MB / 1.34 GB, free: 2.711 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.213e-05/0.3913, allocations: 19.88 kB / 1.34 GB, free: 2.691 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.206e-05/0.3914, allocations: 11.92 kB / 1.34 GB, free: 2.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005291/0.3919, allocations: 16 kB / 1.34 GB, free: 2.664 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.3921, allocations: 44.05 kB / 1.34 GB, free: 2.621 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-05/0.3922, allocations: 32 kB / 1.34 GB, free: 2.59 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.396e-05/0.3922, allocations: 75.28 kB / 1.34 GB, free: 2.516 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3922, allocations: 0 / 1.34 GB, free: 2.516 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0006785/0.3929, allocations: 183.7 kB / 1.34 GB, free: 2.336 MB / 1.029 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.003534/0.3964, allocations: 2.138 MB / 1.342 GB, free: 172 kB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001623/0.3981, allocations: 0.7113 MB / 1.343 GB, free: 15.45 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.259e-06/0.3981, allocations: 0 / 1.343 GB, free: 15.45 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0008296/0.3989, allocations: 419.7 kB / 1.343 GB, free: 15.04 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.3993, allocations: 27.83 kB / 1.344 GB, free: 15.02 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009421/0.4087, allocations: 3.698 MB / 1.347 GB, free: 11.23 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001607/0.4089, allocations: 103.5 kB / 1.347 GB, free: 11.11 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001215/0.4101, allocations: 289.6 kB / 1.348 GB, free: 10.82 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006073/0.4107, allocations: 119.4 kB / 1.348 GB, free: 10.71 MB / 1.045 GB Notification: Performance of SimCode: time 2.425e-06/0.4107, allocations: 0 / 1.348 GB, free: 10.71 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05156/0.4623, allocations: 14.09 MB / 1.361 GB, free: 12.81 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12, allocations: 6.406 kB / 1.361 GB, free: 12.81 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.98909803107381] Failed to read output from testmodel.py, exit status != 0: 12.112324514891952 12.136418417 11.779036109 Calling exit ...