Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.001141, allocations: 107.5 kB / 16.36 MB, free: 5.824 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.001139/0.001139, allocations: 193.1 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.43/2.43, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 64.25 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2875, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001791/0.2893, allocations: 0.5889 MB / 1.027 GB, free: 1.473 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001431/0.2907, allocations: 1.262 MB / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.444e-05/0.2908, allocations: 0 / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.412e-05/0.2908, allocations: 0 / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.368e-06/0.2908, allocations: 0 / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.2911, allocations: 67.73 kB / 1.029 GB, free: 132 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.18e-05/0.2912, allocations: 0 / 1.029 GB, free: 132 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.006e-05/0.2912, allocations: 11.94 kB / 1.029 GB, free: 120 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.337e-05/0.2913, allocations: 4 kB / 1.029 GB, free: 116 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.682e-05/0.2913, allocations: 3.984 kB / 1.029 GB, free: 112 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.163e-06/0.2913, allocations: 0 / 1.029 GB, free: 112 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.2915, allocations: 95.89 kB / 1.029 GB, free: 16 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.2916, allocations: 0 / 1.029 GB, free: 16 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.529e-05/0.2916, allocations: 0 / 1.029 GB, free: 16 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.2917, allocations: 52.03 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2917, allocations: 4 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2917, allocations: 0 / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.2918, allocations: 0 / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002764/0.292, allocations: 327.6 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.2921, allocations: 12.03 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.375e-05/0.2921, allocations: 0.9375 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.865e-05/0.2922, allocations: 172.2 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.2922, allocations: 384 / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-06/0.2922, allocations: 384 / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.717e-05/0.2923, allocations: 34.02 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.2923, allocations: 0 / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.743e-06/0.2924, allocations: 3.938 kB / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.778e-06/0.2924, allocations: 4 kB / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.608e-05/0.2924, allocations: 0 / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001275/0.2925, allocations: 153.7 kB / 1.029 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.759e-05/0.2926, allocations: 22.5 kB / 1.029 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.686e-05/0.2926, allocations: 4.859 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005546/0.2931, allocations: 0.5662 MB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.2932, allocations: 34.5 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.2932, allocations: 0 / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001272/0.2933, allocations: 33.69 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.2934, allocations: 51.41 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.211e-05/0.2934, allocations: 89.86 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.2934, allocations: 33.64 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.597e-05/0.2934, allocations: 80.27 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.559e-05/0.2935, allocations: 4 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.563e-05/0.2935, allocations: 13.72 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.891e-05/0.2936, allocations: 310.8 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.069e-05/0.2936, allocations: 4 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.432e-06/0.2936, allocations: 3.984 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.552e-05/0.2937, allocations: 8.859 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2937, allocations: 0 / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.705e-05/0.2937, allocations: 33.77 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.2937, allocations: 7.938 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.2937, allocations: 4 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.2938, allocations: 0 / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.223e-05/0.2938, allocations: 3.938 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2938, allocations: 0 / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.325e-05/0.2938, allocations: 3.984 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.2938, allocations: 4 kB / 1.031 GB, free: 13.61 MB / 0.8106 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 (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.71e-05/0.2939, allocations: 117.8 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.814e-06/0.2939, allocations: 7.969 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.668e-05/0.294, allocations: 32.83 kB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.294, allocations: 4 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.294, allocations: 0 / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2941, allocations: 0 / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.438e-05/0.2941, allocations: 149.7 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2941, allocations: 3.938 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.614e-05/0.2942, allocations: 4 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.2942, allocations: 7.969 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.17e-06/0.2942, allocations: 0 / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.2942, allocations: 0 / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2942, allocations: 3.938 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.12e-05/0.2943, allocations: 61.03 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.688e-05/0.2943, allocations: 81.11 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.2943, allocations: 7.938 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.448e-06/0.2944, allocations: 3.938 kB / 1.031 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.088e-05/0.2944, allocations: 4.031 kB / 1.031 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.2944, allocations: 0 / 1.031 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.514e-05/0.2944, allocations: 79.28 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2944, allocations: 0 / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00019/0.2946, allocations: 8 kB / 1.031 GB, free: 12.94 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001523/0.2948, allocations: 107.2 kB / 1.031 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.032e-05/0.2948, allocations: 7.938 kB / 1.031 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2949, allocations: 4.062 kB / 1.031 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.371e-06/0.2949, allocations: 0 / 1.031 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.295, allocations: 7.938 kB / 1.031 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001535/0.2952, allocations: 77.06 kB / 1.031 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001907/0.2954, allocations: 0.669 MB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.839e-05/0.2954, allocations: 4 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.395e-05/0.2954, allocations: 7.438 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of SimCode: time 2.7e-07/0.2954, allocations: 4.062 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of Templates: time 0.002106/0.2975, allocations: 296.7 kB / 1.032 GB, free: 11.71 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches