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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001485/0.001485, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001818/0.001818, allocations: 192.7 kB / 16.25 MB, free: 6.633 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.383/1.383, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.771/2.771, allocations: 472.6 MB / 0.7448 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 67.22 kB / 0.9116 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.298, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001716/0.2997, allocations: 0.6464 MB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001459/0.3012, allocations: 1.262 MB / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.347e-05/0.3012, allocations: 0 / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.265e-05/0.3013, allocations: 0 / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.378e-06/0.3013, allocations: 0 / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.3016, allocations: 55.89 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.173e-05/0.3017, allocations: 4 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.929e-05/0.3017, allocations: 3.938 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.391e-05/0.3017, allocations: 0 / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.229e-05/0.3018, allocations: 11.97 kB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.434e-06/0.3018, allocations: 0 / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002309/0.302, allocations: 91.91 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.145e-05/0.3021, allocations: 7.984 kB / 1.07 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.477e-05/0.3021, allocations: 0 / 1.07 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.3022, allocations: 51.94 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3022, allocations: 0 / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3022, allocations: 0 / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.493e-06/0.3022, allocations: 0 / 1.07 GB, free: 8.594 MB / 0.8262 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.0003045/0.3025, allocations: 333.4 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.3026, allocations: 12.03 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/0.3026, allocations: 4.938 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.866e-05/0.3027, allocations: 160.4 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.3027, allocations: 384 / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.3027, allocations: 4.359 kB / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.3029, allocations: 34.02 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.3029, allocations: 0 / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.3029, allocations: 3.938 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.3029, allocations: 0 / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.422e-05/0.3029, allocations: 0 / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001396/0.3031, allocations: 153.7 kB / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.896e-05/0.3031, allocations: 18.52 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.423e-05/0.3032, allocations: 12.94 kB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005304/0.3037, allocations: 0.5583 MB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.3037, allocations: 38.5 kB / 1.071 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3037, allocations: 0 / 1.071 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001262/0.3039, allocations: 33.69 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.757e-05/0.3039, allocations: 59.34 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.028e-05/0.3039, allocations: 89.86 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.304, allocations: 29.64 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.233e-05/0.304, allocations: 80.14 kB / 1.071 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.304, allocations: 7.906 kB / 1.071 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.616e-05/0.3041, allocations: 13.84 kB / 1.071 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.492e-05/0.3042, allocations: 314.8 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.346e-06/0.3042, allocations: 0 / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.35e-06/0.3042, allocations: 0 / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.758e-05/0.3042, allocations: 12.84 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.3042, allocations: 0 / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.231e-05/0.3043, allocations: 41.62 kB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.3043, allocations: 11.94 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3043, allocations: 96 / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.908e-06/0.3043, allocations: 4 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.671e-05/0.3044, allocations: 0 / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.3044, allocations: 4 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.051e-05/0.3044, allocations: 0 / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-06/0.3044, allocations: 0 / 1.072 GB, free: 6.238 MB / 0.8262 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 5.677e-05/0.3045, allocations: 109.8 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.029e-05/0.3045, allocations: 3.938 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.196e-05/0.3046, allocations: 44.83 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.3046, allocations: 0 / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3046, allocations: 0 / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-06/0.3046, allocations: 0 / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.384e-05/0.3047, allocations: 145.7 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.3047, allocations: 3.938 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.65e-05/0.3047, allocations: 7.938 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.3047, allocations: 7.938 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-06/0.3047, allocations: 0 / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.3047, allocations: 0 / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3047, allocations: 4.031 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.979e-05/0.3048, allocations: 61.12 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.73e-05/0.3048, allocations: 77.39 kB / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.05e-05/0.3049, allocations: 3.938 kB / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.247e-06/0.3049, allocations: 0 / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.176e-05/0.3049, allocations: 4 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.3049, allocations: 0 / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.258e-05/0.3049, allocations: 79.31 kB / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3049, allocations: 0 / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001977/0.3051, allocations: 4 kB / 1.072 GB, free: 5.59 MB / 0.8262 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.0001485/0.3053, allocations: 107.2 kB / 1.072 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.756e-05/0.3054, allocations: 7.938 kB / 1.072 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3054, allocations: 0 / 1.072 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.985e-06/0.3054, allocations: 7.938 kB / 1.072 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001292/0.3055, allocations: 4.062 kB / 1.072 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001742/0.3057, allocations: 88.91 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.3059, allocations: 0.6729 MB / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.864e-05/0.306, allocations: 0 / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.519e-05/0.306, allocations: 7.438 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.306, allocations: 0 / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of Templates: time 0.002215/0.3082, allocations: 305.3 kB / 1.073 GB, free: 4.336 MB / 0.8262 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 -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/jenkins/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