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 1.975/1.975, allocations: 390.5 MB / 398 MB, free: 10.95 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.001013/0.001013, allocations: 180.9 kB / 491.2 MB, free: 1.613 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.241/1.241, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.0008519/0.0008518, allocations: 99.83 kB / 0.9269 GB, free: 13.75 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.94e-05/1.941e-05, allocations: 8 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2067, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6634/0.8702, allocations: 149.9 MB / 1.359 GB, free: 17.21 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/0.8704, allocations: 82.5 kB / 1.359 GB, free: 17.21 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006523/0.8769, allocations: 2.405 MB / 1.361 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.032e-06/0.877, allocations: 3.938 kB / 1.361 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.877, allocations: 0 / 1.361 GB, free: 32.78 MB / 0.8386 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.0002411/0.8772, allocations: 343.1 kB / 1.362 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.8773, allocations: 11.53 kB / 1.362 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.094e-05/0.8773, allocations: 6.141 kB / 1.362 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.976e-05/0.8774, allocations: 174.7 kB / 1.362 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.8774, allocations: 1.828 kB / 1.362 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.01e-05/0.8774, allocations: 3.844 kB / 1.362 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.146e-05/0.8775, allocations: 18.59 kB / 1.362 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.911e-05/0.8776, allocations: 51.89 kB / 1.362 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.8776, allocations: 0 / 1.362 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.8776, allocations: 0 / 1.362 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.8776, allocations: 1.547 kB / 1.362 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001076/0.8777, allocations: 147.3 kB / 1.362 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.199e-05/0.8778, allocations: 54.47 kB / 1.362 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.783e-05/0.8778, allocations: 22.89 kB / 1.362 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000268/0.8781, allocations: 0.5507 MB / 1.363 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.8781, allocations: 38.5 kB / 1.363 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.8782, allocations: 3.984 kB / 1.363 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17): time 0.01125/0.8894, allocations: 3.367 MB / 1.366 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.605e-05/0.8894, allocations: 59.08 kB / 1.366 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.845e-05/0.8895, allocations: 86.73 kB / 1.366 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.459e-05/0.8896, allocations: 29.64 kB / 1.366 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 1.832e-05/0.8896, allocations: 80.14 kB / 1.366 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.237e-05/0.8897, allocations: 61.55 kB / 1.366 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.247e-05/0.8897, allocations: 0 / 1.366 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 6.172e-05/0.8898, allocations: 321.9 kB / 1.367 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.8901, allocations: 304.8 kB / 1.367 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003355/0.8905, allocations: 301.1 kB / 1.367 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005521/0.891, allocations: 379.1 kB / 1.367 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.8911, allocations: 0 / 1.367 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001065/0.8921, allocations: 0.7866 MB / 1.368 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.8921, allocations: 3.844 kB / 1.368 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.8922, allocations: 0 / 1.368 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.8922, allocations: 7.844 kB / 1.368 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000733/0.8929, allocations: 91.19 kB / 1.368 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.8929, allocations: 5.922 kB / 1.368 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004855/0.8934, allocations: 7.922 kB / 1.368 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.858e-05/0.8935, allocations: 34.58 kB / 1.368 GB, free: 29.71 MB / 0.8386 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 () * 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.0001553/0.8936, allocations: 104.9 kB / 1.368 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001071/0.8947, allocations: 0.7755 MB / 1.369 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.103e-05/0.8948, allocations: 7.875 kB / 1.369 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002666/0.8975, allocations: 1.352 MB / 1.371 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.8975, allocations: 3.812 kB / 1.371 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.8975, allocations: 3.953 kB / 1.371 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.8975, allocations: 6.656 kB / 1.371 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/0.8995, allocations: 1.707 MB / 1.372 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.8995, allocations: 3.953 kB / 1.372 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007135/0.9002, allocations: 108.2 kB / 1.372 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.9003, allocations: 1.688 kB / 1.372 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.449e-05/0.9003, allocations: 27.12 kB / 1.372 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.9003, allocations: 1.641 kB / 1.372 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.9003, allocations: 0 / 1.372 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.9019, allocations: 1.4 MB / 1.374 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.247e-05/0.902, allocations: 96.67 kB / 1.374 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.388e-05/0.902, allocations: 0 / 1.374 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004932/0.9025, allocations: 7.812 kB / 1.374 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.045e-05/0.9026, allocations: 38.98 kB / 1.374 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.752e-05/0.9027, allocations: 32.98 kB / 1.374 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.289e-05/0.9027, allocations: 79.16 kB / 1.374 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7.11e-07/0.9027, allocations: 0 / 1.374 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004844/0.9032, allocations: 206.7 kB / 1.374 GB, free: 28.5 MB / 0.8386 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 () * 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.002111/0.9053, allocations: 2.153 MB / 1.376 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007845/0.9061, allocations: 0.6906 MB / 1.377 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.9061, allocations: 4.062 kB / 1.377 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004239/0.9066, allocations: 433.1 kB / 1.377 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001761/0.9068, allocations: 2.062 kB / 1.377 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003171/0.9099, allocations: 0.788 MB / 1.378 GB, free: 27.47 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.9102, allocations: 0.7214 MB / 1.379 GB, free: 26.76 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.001293/0.9115, allocations: 289.9 kB / 1.379 GB, free: 26.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005076/0.912, allocations: 116.5 kB / 1.379 GB, free: 26.61 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/0.912, allocations: 4 kB / 1.379 GB, free: 26.6 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.9383, allocations: 11.25 MB / 1.39 GB, free: 24.41 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001291/0.9384, allocations: 166.5 kB / 1.39 GB, free: 24.22 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.429/2.367, allocations: 0 / 1.39 GB, free: 24.22 MB / 0.8386 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