Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_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.0008008/0.0008007, allocations: 91.45 kB / 15.06 MB, free: 1.098 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.0008805/0.0008806, allocations: 172.7 kB / 15.95 MB, free: 208 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.481/1.481, allocations: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.513/2.513, allocations: 409.4 MB / 0.684 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003712/0.0003713, allocations: 12 kB / 0.8378 GB, free: 6.492 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7335/0.7338, allocations: 146.8 MB / 0.9812 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0008352/0.7347, allocations: 341.6 kB / 0.9815 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001522/0.7363, allocations: 1.231 MB / 0.9827 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.935e-05/0.7363, allocations: 0 / 0.9827 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.171e-05/0.7363, allocations: 0 / 0.9827 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 2.042e-05/0.7364, allocations: 0 / 0.9827 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003137/0.7367, allocations: 59.88 kB / 0.9827 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.376e-05/0.7367, allocations: 19.92 kB / 0.9828 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.219e-05/0.7368, allocations: 0 / 0.9828 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.573e-05/0.7368, allocations: 11.97 kB / 0.9828 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.112e-05/0.7369, allocations: 19.92 kB / 0.9828 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.066e-05/0.7369, allocations: 0 / 0.9828 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002004/0.7371, allocations: 95.89 kB / 0.9829 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.588e-06/0.7371, allocations: 0 / 0.9829 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.7372, allocations: 33.64 kB / 0.9829 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.7373, allocations: 47.92 kB / 0.983 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.7373, allocations: 8 kB / 0.983 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.063e-06/0.7373, allocations: 0 / 0.983 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.281e-06/0.7373, allocations: 0 / 0.983 GB, free: 4.352 MB / 0.7325 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.0004382/0.7378, allocations: 337.6 kB / 0.9833 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.7378, allocations: 12.03 kB / 0.9833 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.056e-05/0.7379, allocations: 38.5 kB / 0.9833 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.799e-05/0.7379, allocations: 4 kB / 0.9833 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.738, allocations: 163.1 kB / 0.9835 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.738, allocations: 4 kB / 0.9835 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.674e-05/0.7381, allocations: 8 kB / 0.9835 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.7382, allocations: 53.58 kB / 0.9836 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.7382, allocations: 7.891 kB / 0.9836 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.7382, allocations: 4 kB / 0.9836 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.7383, allocations: 4 kB / 0.9836 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.626e-05/0.7383, allocations: 19.98 kB / 0.9836 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001803/0.7385, allocations: 173.5 kB / 0.9838 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001081/0.7386, allocations: 58.56 kB / 0.9838 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.362e-05/0.7387, allocations: 24.84 kB / 0.9838 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004998/0.7392, allocations: 0.5622 MB / 0.9844 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.7392, allocations: 38.55 kB / 0.9844 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.362e-06/0.7392, allocations: 0 / 0.9844 GB, free: 2.559 MB / 0.7325 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.01666/0.7559, allocations: 4.278 MB / 0.9886 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.756, allocations: 51.41 kB / 0.9887 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.889e-05/0.7561, allocations: 97.8 kB / 0.9887 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 6.571e-05/0.7562, allocations: 29.7 kB / 0.9888 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 3.031e-05/0.7562, allocations: 84.27 kB / 0.9889 GB, free: 13.84 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.7563, allocations: 55.17 kB / 0.9889 GB, free: 13.78 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-05/0.7564, allocations: 4 kB / 0.9889 GB, free: 13.78 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.7565, allocations: 314.8 kB / 0.9892 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005131/0.757, allocations: 311.9 kB / 0.9895 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004903/0.7575, allocations: 307.9 kB / 0.9898 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007631/0.7583, allocations: 389.6 kB / 0.9902 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.7583, allocations: 3.781 kB / 0.9902 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001488/0.7598, allocations: 0.8019 MB / 0.991 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.7598, allocations: 5.25 kB / 0.991 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.7598, allocations: 4 kB / 0.991 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.7599, allocations: 7.938 kB / 0.991 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000721/0.7606, allocations: 91.94 kB / 0.9911 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.7606, allocations: 0 / 0.9911 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003765/0.761, allocations: 8 kB / 0.9911 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.018e-05/0.7611, allocations: 35.97 kB / 0.9911 GB, free: 11.52 MB / 0.7481 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.0001762/0.7613, allocations: 121.7 kB / 0.9912 GB, free: 11.39 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.242e-05/0.7613, allocations: 7.906 kB / 0.9912 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003335/0.7647, allocations: 1.399 MB / 0.9926 GB, free: 9.98 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.7647, allocations: 4 kB / 0.9926 GB, free: 9.977 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.7647, allocations: 4 kB / 0.9926 GB, free: 9.973 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.7647, allocations: 3.984 kB / 0.9926 GB, free: 9.969 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002749/0.7675, allocations: 1.81 MB / 0.9944 GB, free: 8.09 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.7675, allocations: 0 / 0.9944 GB, free: 8.09 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006867/0.7682, allocations: 111.8 kB / 0.9945 GB, free: 7.98 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/0.7682, allocations: 4 kB / 0.9945 GB, free: 7.977 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.262e-05/0.7683, allocations: 28 kB / 0.9945 GB, free: 7.949 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/0.7683, allocations: 4.078 kB / 0.9945 GB, free: 7.945 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.7683, allocations: 3.984 kB / 0.9945 GB, free: 7.941 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/0.7705, allocations: 1.465 MB / 0.9959 GB, free: 6.457 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.5e-05/0.7706, allocations: 88.98 kB / 0.996 GB, free: 6.352 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.567e-05/0.7707, allocations: 8 kB / 0.996 GB, free: 6.344 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003937/0.7711, allocations: 19.98 kB / 0.9961 GB, free: 6.324 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.7712, allocations: 35.97 kB / 0.9961 GB, free: 6.289 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.846e-05/0.7713, allocations: 32 kB / 0.9961 GB, free: 6.258 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 3.559e-05/0.7713, allocations: 79.23 kB / 0.9962 GB, free: 6.18 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.442e-06/0.7713, allocations: 0 / 0.9962 GB, free: 6.18 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005649/0.7719, allocations: 183.9 kB / 0.9964 GB, free: 6 MB / 0.7481 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.002907/0.7748, allocations: 2.123 MB / 0.9984 GB, free: 3.848 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001205/0.776, allocations: 0.7261 MB / 0.9992 GB, free: 3.121 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.776, allocations: 0 / 0.9992 GB, free: 3.121 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0006353/0.7767, allocations: 451.8 kB / 0.9996 GB, free: 2.68 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00031/0.777, allocations: 16 kB / 0.9996 GB, free: 2.664 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004799/0.7818, allocations: 2.148 MB / 1.002 GB, free: 480 kB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.7821, allocations: 0.7145 MB / 1.002 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001427/0.7835, allocations: 297.5 kB / 1.003 GB, free: 15.44 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005525/0.7841, allocations: 122.3 kB / 1.003 GB, free: 15.32 MB / 0.7637 GB Notification: Performance of SimCode: time 4.31e-07/0.7841, allocations: 0 / 1.003 GB, free: 15.32 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.8077, allocations: 11.67 MB / 1.014 GB, free: 3.883 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/0.808, allocations: 218.7 kB / 1.014 GB, free: 3.645 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.68, allocations: 0 / 1.014 GB, free: 3.645 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat does not exist to compare? outputFormat=mat