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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.345/2.345, allocations: 393.5 MB / 408.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001123, allocations: 191.1 kB / 0.4902 GB, free: 2.195 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.629/1.629, allocations: 223.1 MB / 0.7992 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 104.2 kB / 0.9396 GB, free: 1.832 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003596, allocations: 10.19 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.296, allocations: 143 MB / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1865/0.4826, allocations: 150.6 MB / 1.376 GB, free: 2.734 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.4829, allocations: 87.94 kB / 1.376 GB, free: 2.648 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007131/0.49, allocations: 2.426 MB / 1.379 GB, free: 224 kB / 0.8698 GB Notification: Performance of FrontEnd: time 1.503e-06/0.49, allocations: 0 / 1.379 GB, free: 224 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.49, allocations: 0 / 1.379 GB, free: 224 kB / 0.8698 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.0003751/0.4904, allocations: 363.3 kB / 1.379 GB, free: 15.82 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.4905, allocations: 8.031 kB / 1.379 GB, free: 15.81 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.284e-05/0.4905, allocations: 38.56 kB / 1.379 GB, free: 15.76 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.4906, allocations: 7.859 kB / 1.379 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.4907, allocations: 163.1 kB / 1.379 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.4907, allocations: 4 kB / 1.379 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.4907, allocations: 8 kB / 1.379 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.4909, allocations: 45.62 kB / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.4909, allocations: 8 kB / 1.379 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.4909, allocations: 7.984 kB / 1.379 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.4909, allocations: 0 / 1.379 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.941e-05/0.491, allocations: 23.97 kB / 1.379 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001841/0.4912, allocations: 169.6 kB / 1.38 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001113/0.4913, allocations: 58.56 kB / 1.38 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004432/0.4918, allocations: 0.5583 MB / 1.38 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.4918, allocations: 42.48 kB / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.4918, allocations: 0 / 1.38 GB, free: 14.43 MB / 0.8855 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.02021/0.512, allocations: 4.256 MB / 1.384 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.5121, allocations: 55.41 kB / 1.384 GB, free: 9.953 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.733e-05/0.5122, allocations: 85 kB / 1.385 GB, free: 9.863 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 8.195e-05/0.5123, allocations: 25.7 kB / 1.385 GB, free: 9.832 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.5e-05/0.5123, allocations: 96.25 kB / 1.385 GB, free: 9.734 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.5124, allocations: 47.2 kB / 1.385 GB, free: 9.688 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.875e-05/0.5125, allocations: 4 kB / 1.385 GB, free: 9.684 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.5126, allocations: 318.8 kB / 1.385 GB, free: 9.363 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000497/0.5132, allocations: 307.9 kB / 1.385 GB, free: 9.062 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005075/0.5137, allocations: 311.8 kB / 1.386 GB, free: 8.758 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007494/0.5144, allocations: 397.8 kB / 1.386 GB, free: 8.371 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.5144, allocations: 0 / 1.386 GB, free: 8.371 MB / 0.8855 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00152/0.516, allocations: 0.7904 MB / 1.387 GB, free: 7.574 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.516, allocations: 13.5 kB / 1.387 GB, free: 7.562 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.516, allocations: 4 kB / 1.387 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.516, allocations: 0 / 1.387 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008029/0.5168, allocations: 99.88 kB / 1.387 GB, free: 7.461 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/0.5169, allocations: 3.953 kB / 1.387 GB, free: 7.457 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005049/0.5174, allocations: 12 kB / 1.387 GB, free: 7.445 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.05e-05/0.5175, allocations: 27.98 kB / 1.387 GB, free: 7.418 MB / 0.8855 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.0002098/0.5177, allocations: 122.6 kB / 1.387 GB, free: 7.289 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.657e-05/0.5178, allocations: 7.906 kB / 1.387 GB, free: 7.281 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003426/0.5212, allocations: 1.407 MB / 1.388 GB, free: 5.871 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.5212, allocations: 4 kB / 1.388 GB, free: 5.867 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.5212, allocations: 0 / 1.388 GB, free: 5.867 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.5212, allocations: 3.953 kB / 1.388 GB, free: 5.863 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.5241, allocations: 1.795 MB / 1.39 GB, free: 4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.5241, allocations: 3.953 kB / 1.39 GB, free: 3.996 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007551/0.5249, allocations: 115.9 kB / 1.39 GB, free: 3.883 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.5249, allocations: 0 / 1.39 GB, free: 3.883 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.155e-05/0.525, allocations: 28 kB / 1.39 GB, free: 3.855 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.525, allocations: 3.938 kB / 1.39 GB, free: 3.852 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.525, allocations: 0 / 1.39 GB, free: 3.852 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002302/0.5273, allocations: 1.486 MB / 1.392 GB, free: 2.34 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.342e-05/0.5274, allocations: 96.89 kB / 1.392 GB, free: 2.227 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.943e-05/0.5275, allocations: 4 kB / 1.392 GB, free: 2.223 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004681/0.5279, allocations: 12 kB / 1.392 GB, free: 2.211 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.5281, allocations: 39.97 kB / 1.392 GB, free: 2.172 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.426e-05/0.5281, allocations: 35.98 kB / 1.392 GB, free: 2.137 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.853e-05/0.5282, allocations: 75.28 kB / 1.392 GB, free: 2.062 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5282, allocations: 4.156 kB / 1.392 GB, free: 2.059 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0006076/0.5288, allocations: 211.7 kB / 1.392 GB, free: 1.852 MB / 0.8855 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.003047/0.5319, allocations: 2.241 MB / 1.394 GB, free: 15.58 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001206/0.5331, allocations: 0.7301 MB / 1.395 GB, free: 14.85 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.5331, allocations: 3.938 kB / 1.395 GB, free: 14.84 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0006237/0.5337, allocations: 451.8 kB / 1.396 GB, free: 14.4 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.5339, allocations: 8.625 kB / 1.396 GB, free: 14.39 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005312/0.5393, allocations: 2.174 MB / 1.398 GB, free: 12.17 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.5396, allocations: 0.7184 MB / 1.398 GB, free: 11.43 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.001478/0.5411, allocations: 297.6 kB / 1.399 GB, free: 11.14 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005698/0.5417, allocations: 119.3 kB / 1.399 GB, free: 11.02 MB / 0.9011 GB Notification: Performance of SimCode: time 1.583e-06/0.5417, allocations: 0 / 1.399 GB, free: 11.02 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.5684, allocations: 11.4 MB / 1.41 GB, free: 15.83 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000221/0.5687, allocations: 207 kB / 1.41 GB, free: 15.59 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.665/2.233, allocations: 4.062 kB / 1.41 GB, free: 15.59 MB / 0.9167 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) 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