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.001334/0.001334, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001605/0.001605, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.626/2.626, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.887/4.887, allocations: 409.2 MB / 0.6838 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005858/0.000586, allocations: 16 kB / 0.8375 GB, free: 6.5 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.553/1.554, allocations: 146.8 MB / 0.9809 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001262/1.555, allocations: 349.4 kB / 0.9812 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002745/1.558, allocations: 1.216 MB / 0.9824 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.758e-05/1.558, allocations: 7.938 kB / 0.9824 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.805e-05/1.558, allocations: 0 / 0.9824 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.653e-05/1.558, allocations: 0 / 0.9824 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004787/1.558, allocations: 59.8 kB / 0.9825 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.143e-05/1.559, allocations: 11.98 kB / 0.9825 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.93e-05/1.559, allocations: 7.938 kB / 0.9825 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.537e-05/1.559, allocations: 7.938 kB / 0.9825 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/1.559, allocations: 15.97 kB / 0.9825 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/1.559, allocations: 0 / 0.9825 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003234/1.559, allocations: 99.83 kB / 0.9826 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.303e-05/1.559, allocations: 7.922 kB / 0.9826 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.647e-05/1.559, allocations: 29.7 kB / 0.9826 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/1.56, allocations: 47.94 kB / 0.9827 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/1.56, allocations: 0 / 0.9827 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.276e-06/1.56, allocations: 0 / 0.9827 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.196e-06/1.56, allocations: 0 / 0.9827 GB, free: 4.379 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.0006898/1.56, allocations: 347.6 kB / 0.983 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 7.117e-05/1.56, allocations: 8.031 kB / 0.983 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.595e-05/1.56, allocations: 38.56 kB / 0.9831 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.881e-05/1.56, allocations: 0 / 0.9831 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/1.561, allocations: 167.1 kB / 0.9832 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/1.561, allocations: 0 / 0.9832 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.937e-05/1.561, allocations: 11.94 kB / 0.9832 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/1.561, allocations: 49.62 kB / 0.9833 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/1.561, allocations: 7.906 kB / 0.9833 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/1.561, allocations: 4 kB / 0.9833 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/1.561, allocations: 0 / 0.9833 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001018/1.561, allocations: 19.98 kB / 0.9833 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003208/1.561, allocations: 165.6 kB / 0.9835 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001904/1.562, allocations: 70.48 kB / 0.9835 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008551/1.563, allocations: 0.5547 MB / 0.9841 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/1.563, allocations: 34.55 kB / 0.9841 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.593e-06/1.563, allocations: 0 / 0.9841 GB, free: 2.625 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.02857/1.591, allocations: 4.287 MB / 0.9883 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.167e-05/1.591, allocations: 51.41 kB / 0.9883 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/1.592, allocations: 97.84 kB / 0.9884 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001232/1.592, allocations: 29.7 kB / 0.9885 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 7.184e-05/1.592, allocations: 84.12 kB / 0.9885 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/1.592, allocations: 55.3 kB / 0.9886 GB, free: 13.84 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.78e-05/1.592, allocations: 8 kB / 0.9886 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002464/1.592, allocations: 318.8 kB / 0.9889 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008559/1.593, allocations: 307.9 kB / 0.9892 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008422/1.594, allocations: 305 kB / 0.9895 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/1.595, allocations: 393 kB / 0.9899 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/1.595, allocations: 0 / 0.9899 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002502/1.598, allocations: 0.8037 MB / 0.9907 GB, free: 11.72 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/1.598, allocations: 8 kB / 0.9907 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/1.598, allocations: 4 kB / 0.9907 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/1.598, allocations: 0 / 0.9907 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/1.599, allocations: 91.94 kB / 0.9908 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/1.599, allocations: 0 / 0.9908 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006874/1.6, allocations: 12 kB / 0.9908 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/1.6, allocations: 31.98 kB / 0.9908 GB, free: 11.58 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.0003498/1.6, allocations: 125.8 kB / 0.9909 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/1.6, allocations: 7.859 kB / 0.9909 GB, free: 11.44 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005193/1.606, allocations: 1.399 MB / 0.9923 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/1.606, allocations: 4 kB / 0.9923 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/1.606, allocations: 0 / 0.9923 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/1.606, allocations: 3.984 kB / 0.9923 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004763/1.611, allocations: 1.81 MB / 0.9941 GB, free: 8.148 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/1.611, allocations: 8.031 kB / 0.9941 GB, free: 8.141 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/1.612, allocations: 111.9 kB / 0.9942 GB, free: 8.031 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.428e-05/1.612, allocations: 0 / 0.9942 GB, free: 8.031 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001286/1.612, allocations: 31.94 kB / 0.9942 GB, free: 8 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/1.612, allocations: 0 / 0.9942 GB, free: 8 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.227e-06/1.612, allocations: 0 / 0.9942 GB, free: 8 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003952/1.616, allocations: 1.482 MB / 0.9957 GB, free: 6.492 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/1.616, allocations: 88.98 kB / 0.9957 GB, free: 6.387 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001403/1.616, allocations: 11.94 kB / 0.9958 GB, free: 6.375 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007574/1.617, allocations: 8 kB / 0.9958 GB, free: 6.367 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002075/1.617, allocations: 51.91 kB / 0.9958 GB, free: 6.316 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/1.617, allocations: 31.94 kB / 0.9958 GB, free: 6.285 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 7.887e-05/1.617, allocations: 79.28 kB / 0.9959 GB, free: 6.207 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.8e-07/1.618, allocations: 0 / 0.9959 GB, free: 6.207 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001102/1.619, allocations: 176 kB / 0.9961 GB, free: 6.035 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.005278/1.624, allocations: 2.202 MB / 0.9982 GB, free: 3.801 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002039/1.626, allocations: 0.7184 MB / 0.9989 GB, free: 3.082 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/1.626, allocations: 4.062 kB / 0.9989 GB, free: 3.078 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001035/1.627, allocations: 451.8 kB / 0.9994 GB, free: 2.637 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003343/1.627, allocations: 7.953 kB / 0.9994 GB, free: 2.629 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008959/1.636, allocations: 2.15 MB / 1.001 GB, free: 440 kB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000563/1.637, allocations: 0.7184 MB / 1.002 GB, free: 15.68 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002338/1.639, allocations: 293.6 kB / 1.002 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008306/1.64, allocations: 119.4 kB / 1.003 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of SimCode: time 3.877e-06/1.64, allocations: 0 / 1.003 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04463/1.685, allocations: 11.66 MB / 1.014 GB, free: 3.859 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003501/1.685, allocations: 211.9 kB / 1.014 GB, free: 3.617 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.229/4.914, allocations: 3.625 kB / 1.014 GB, free: 3.617 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