Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_9_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.0007979/0.0007978, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.0008245/0.0008245, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.357/2.357, allocations: 390.4 MB / 0.6655 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003761, allocations: 16 kB / 0.8149 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6807/0.6811, allocations: 142.3 MB / 0.9539 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0006548/0.6818, allocations: 344.3 kB / 0.9542 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001566/0.6834, allocations: 1.226 MB / 0.9554 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.143e-05/0.6834, allocations: 1.438 kB / 0.9554 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.021e-05/0.6834, allocations: 0 / 0.9554 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.279e-05/0.6835, allocations: 3.938 kB / 0.9554 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003601/0.6838, allocations: 57.53 kB / 0.9555 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.598e-05/0.6839, allocations: 21.25 kB / 0.9555 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.379e-05/0.6839, allocations: 5.125 kB / 0.9555 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.484e-05/0.684, allocations: 13.3 kB / 0.9555 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.199e-05/0.6841, allocations: 12.67 kB / 0.9555 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.247e-05/0.6841, allocations: 1.562 kB / 0.9555 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002538/0.6843, allocations: 99.48 kB / 0.9556 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.29e-05/0.6844, allocations: 2.219 kB / 0.9556 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.617e-05/0.6844, allocations: 32 kB / 0.9556 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.6845, allocations: 47.59 kB / 0.9557 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.6845, allocations: 1.094 kB / 0.9557 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.254e-06/0.6845, allocations: 0 / 0.9557 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.337e-06/0.6845, allocations: 0 / 0.9557 GB, free: 6.695 MB / 0.7169 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.0003347/0.6849, allocations: 342.6 kB / 0.956 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.6849, allocations: 9.438 kB / 0.956 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.685, allocations: 39.95 kB / 0.9561 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.77e-05/0.685, allocations: 5.391 kB / 0.9561 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.231e-05/0.6851, allocations: 168.4 kB / 0.9562 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.6851, allocations: 1.406 kB / 0.9562 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.6851, allocations: 7.781 kB / 0.9562 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001192/0.6852, allocations: 48.08 kB / 0.9563 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.6853, allocations: 1.031 kB / 0.9563 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.6853, allocations: 1.25 kB / 0.9563 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.6853, allocations: 1.188 kB / 0.9563 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.425e-05/0.6854, allocations: 37.23 kB / 0.9563 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001318/0.6855, allocations: 168.6 kB / 0.9565 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.6856, allocations: 60.47 kB / 0.9565 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.462e-05/0.6857, allocations: 28.03 kB / 0.9566 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003651/0.6861, allocations: 0.5592 MB / 0.9571 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.6861, allocations: 39.81 kB / 0.9571 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.6861, allocations: 1.219 kB / 0.9571 GB, free: 5.02 MB / 0.7169 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.01661/0.7027, allocations: 4.275 MB / 0.9613 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.7027, allocations: 53.62 kB / 0.9614 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.892e-05/0.7028, allocations: 91.2 kB / 0.9615 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.995e-05/0.7029, allocations: 34.95 kB / 0.9615 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.212e-05/0.7029, allocations: 81.3 kB / 0.9616 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.499e-05/0.703, allocations: 53.55 kB / 0.9616 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.197e-05/0.703, allocations: 0 / 0.9616 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.789e-05/0.7031, allocations: 321.4 kB / 0.9619 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004907/0.7036, allocations: 313.3 kB / 0.9622 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004769/0.7041, allocations: 308.7 kB / 0.9625 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006936/0.7048, allocations: 390.1 kB / 0.9629 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.7048, allocations: 5.312 kB / 0.9629 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001451/0.7062, allocations: 0.8013 MB / 0.9637 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.7063, allocations: 8.703 kB / 0.9637 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.7063, allocations: 3.984 kB / 0.9637 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.7063, allocations: 1.375 kB / 0.9637 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000717/0.707, allocations: 92.02 kB / 0.9638 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.707, allocations: 1.281 kB / 0.9638 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004127/0.7074, allocations: 9.25 kB / 0.9638 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.48e-05/0.7075, allocations: 40.19 kB / 0.9638 GB, free: 0.9961 MB / 0.7169 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.0001466/0.7077, allocations: 113.2 kB / 0.9639 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.476e-05/0.7078, allocations: 7.469 kB / 0.9639 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003651/0.7114, allocations: 1.409 MB / 0.9653 GB, free: 36 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.7114, allocations: 8.016 kB / 0.9653 GB, free: 32 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.7114, allocations: 0 / 0.9653 GB, free: 32 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.7115, allocations: 4.922 kB / 0.9653 GB, free: 28 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00299/0.7145, allocations: 1.814 MB / 0.9671 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.7145, allocations: 0.9688 kB / 0.9671 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007222/0.7152, allocations: 106.1 kB / 0.9672 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.7152, allocations: 5.25 kB / 0.9672 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.866e-05/0.7153, allocations: 25.22 kB / 0.9672 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.692e-06/0.7153, allocations: 6.141 kB / 0.9672 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.7153, allocations: 0.9375 kB / 0.9672 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/0.7177, allocations: 1.481 MB / 0.9687 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.584e-05/0.7178, allocations: 90.55 kB / 0.9688 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.327e-05/0.7179, allocations: 9.859 kB / 0.9688 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004266/0.7183, allocations: 14.41 kB / 0.9688 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.7184, allocations: 37.94 kB / 0.9688 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.297e-05/0.7185, allocations: 30.47 kB / 0.9689 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.899e-05/0.7186, allocations: 76.31 kB / 0.9689 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7186, allocations: 4.156 kB / 0.9689 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005989/0.7192, allocations: 179.2 kB / 0.9691 GB, free: 13.66 MB / 0.7325 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.003032/0.7222, allocations: 2.12 MB / 0.9712 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001266/0.7235, allocations: 0.721 MB / 0.9719 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.7235, allocations: 4.062 kB / 0.9719 GB, free: 11.87 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006598/0.7242, allocations: 454.4 kB / 0.9723 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.7245, allocations: 11.91 kB / 0.9723 GB, free: 11.63 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00512/0.7296, allocations: 2.156 MB / 0.9744 GB, free: 10.36 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.7299, allocations: 0.7138 MB / 0.9751 GB, free: 9.648 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001539/0.7315, allocations: 295.4 kB / 0.9754 GB, free: 9.367 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005988/0.7321, allocations: 115.4 kB / 0.9755 GB, free: 9.254 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.7321, allocations: 0 / 0.9755 GB, free: 9.254 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02442/0.7565, allocations: 11.68 MB / 0.9869 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000155/0.7567, allocations: 208 kB / 0.9871 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/2.475, allocations: 2.5 kB / 0.9871 GB, free: 13.57 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat does not exist to compare? outputFormat=mat