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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.655/2.655, allocations: 390.3 MB / 405.3 MB, free: 13.41 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.001076/0.001075, allocations: 182 kB / 498.1 MB, free: 5.676 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.614/1.614, allocations: 223.1 MB / 0.7948 GB, free: 17.91 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.0009199/0.00092, allocations: 100.8 kB / 0.9346 GB, free: 6.191 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004085/0.0004087, allocations: 11.17 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3274, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1862/0.5136, allocations: 149.8 MB / 1.369 GB, free: 12.14 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.5139, allocations: 87.92 kB / 1.369 GB, free: 12.05 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007351/0.5213, allocations: 2.407 MB / 1.372 GB, free: 9.641 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.883e-06/0.5213, allocations: 4 kB / 1.372 GB, free: 9.637 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.294e-06/0.5213, allocations: 0 / 1.372 GB, free: 9.637 MB / 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.0004029/0.5218, allocations: 355.3 kB / 1.372 GB, free: 9.242 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.5218, allocations: 8.031 kB / 1.372 GB, free: 9.234 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.097e-05/0.5219, allocations: 34.56 kB / 1.372 GB, free: 9.191 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.36e-05/0.5219, allocations: 7.859 kB / 1.372 GB, free: 9.184 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.522, allocations: 175 kB / 1.372 GB, free: 8.973 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.5221, allocations: 11.92 kB / 1.372 GB, free: 8.961 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.932e-05/0.5221, allocations: 8 kB / 1.372 GB, free: 8.953 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.5223, allocations: 49.69 kB / 1.372 GB, free: 8.898 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.5223, allocations: 0 / 1.372 GB, free: 8.898 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.5223, allocations: 0 / 1.372 GB, free: 8.898 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.5223, allocations: 3.984 kB / 1.372 GB, free: 8.895 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.664e-05/0.5224, allocations: 23.98 kB / 1.372 GB, free: 8.871 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001858/0.5226, allocations: 165.6 kB / 1.372 GB, free: 8.66 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001248/0.5227, allocations: 62.5 kB / 1.373 GB, free: 8.59 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004818/0.5232, allocations: 0.5505 MB / 1.373 GB, free: 7.91 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.5233, allocations: 38.56 kB / 1.373 GB, free: 7.863 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.5233, allocations: 0 / 1.373 GB, free: 7.863 MB / 0.8698 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.02052/0.5438, allocations: 4.264 MB / 1.377 GB, free: 3.441 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.5439, allocations: 51.41 kB / 1.377 GB, free: 3.379 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.495e-05/0.544, allocations: 89 kB / 1.377 GB, free: 3.285 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.882e-05/0.5441, allocations: 33.7 kB / 1.377 GB, free: 3.246 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.061e-05/0.5441, allocations: 84.12 kB / 1.378 GB, free: 3.16 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.5442, allocations: 55.11 kB / 1.378 GB, free: 3.105 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.908e-05/0.5443, allocations: 11.94 kB / 1.378 GB, free: 3.094 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.5444, allocations: 310.8 kB / 1.378 GB, free: 2.781 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005063/0.5449, allocations: 315.9 kB / 1.378 GB, free: 2.473 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004988/0.5454, allocations: 309.1 kB / 1.378 GB, free: 2.172 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007451/0.5462, allocations: 397.1 kB / 1.379 GB, free: 1.785 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.5462, allocations: 0 / 1.379 GB, free: 1.785 MB / 0.8698 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001532/0.5477, allocations: 0.7919 MB / 1.38 GB, free: 0.9883 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.5478, allocations: 8 kB / 1.38 GB, free: 0.9805 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.5478, allocations: 0 / 1.38 GB, free: 0.9805 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.5478, allocations: 4 kB / 1.38 GB, free: 0.9766 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007968/0.5486, allocations: 95.88 kB / 1.38 GB, free: 0.8828 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.5486, allocations: 4.344 kB / 1.38 GB, free: 0.8789 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004899/0.5491, allocations: 8 kB / 1.38 GB, free: 0.8711 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.691e-05/0.5492, allocations: 35.98 kB / 1.38 GB, free: 0.8359 MB / 0.8698 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.0002162/0.5494, allocations: 113.8 kB / 1.38 GB, free: 0.7148 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.328e-05/0.5495, allocations: 7.906 kB / 1.38 GB, free: 0.707 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003439/0.553, allocations: 1.412 MB / 1.381 GB, free: 15.29 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.553, allocations: 4 kB / 1.381 GB, free: 15.28 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.553, allocations: 0 / 1.381 GB, free: 15.28 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.553, allocations: 3.953 kB / 1.381 GB, free: 15.28 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003056/0.5561, allocations: 1.814 MB / 1.383 GB, free: 13.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.35e-05/0.5561, allocations: 11.89 kB / 1.383 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007766/0.5569, allocations: 103.9 kB / 1.383 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.798e-06/0.5569, allocations: 3.984 kB / 1.383 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.224e-05/0.557, allocations: 32 kB / 1.383 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.557, allocations: 0 / 1.383 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.557, allocations: 0 / 1.383 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002471/0.5595, allocations: 1.486 MB / 1.385 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.693e-05/0.5596, allocations: 96.84 kB / 1.385 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.501e-05/0.5597, allocations: 12 kB / 1.385 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/0.5601, allocations: 8 kB / 1.385 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.5603, allocations: 43.97 kB / 1.385 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.538e-05/0.5604, allocations: 32.05 kB / 1.385 GB, free: 11.53 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.785e-05/0.5604, allocations: 79.28 kB / 1.385 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5604, allocations: 0 / 1.385 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0006841/0.5611, allocations: 207.7 kB / 1.385 GB, free: 11.25 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.003215/0.5643, allocations: 2.248 MB / 1.387 GB, free: 8.969 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001269/0.5656, allocations: 0.7184 MB / 1.388 GB, free: 8.25 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5656, allocations: 0 / 1.388 GB, free: 8.25 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0006673/0.5663, allocations: 452.1 kB / 1.388 GB, free: 7.809 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.5665, allocations: 15.94 kB / 1.388 GB, free: 7.793 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005552/0.5721, allocations: 2.178 MB / 1.391 GB, free: 5.57 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.5724, allocations: 0.7263 MB / 1.391 GB, free: 4.82 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.00144/0.5739, allocations: 289.5 kB / 1.392 GB, free: 4.535 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005906/0.5745, allocations: 119.4 kB / 1.392 GB, free: 4.418 MB / 0.8855 GB Notification: Performance of SimCode: time 8.62e-07/0.5745, allocations: 0 / 1.392 GB, free: 4.418 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03/0.6045, allocations: 11.39 MB / 1.403 GB, free: 9.227 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002751/0.6048, allocations: 201.2 kB / 1.403 GB, free: 8.988 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/2.291, allocations: 0 / 1.403 GB, free: 8.988 MB / 0.9011 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