Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Splice.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Examples.Splice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|splice.x|splice.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Splice") translateModel(Buildings.Utilities.Math.Examples.Splice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|splice.x|splice.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Splice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001449/0.001457, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001176/0.001176, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.387/1.387, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.826/2.826, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 62.06 kB / 0.8984 GB, free: 37.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3574, allocations: 157.4 MB / 1.052 GB, free: 8.91 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Splice): time 0.00275/0.3601, allocations: 1.561 MB / 1.054 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.3612, allocations: 0.6621 MB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.3612, allocations: 4 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.203e-05/0.3613, allocations: 0 / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.926e-05/0.3614, allocations: 7.922 kB / 1.054 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002734/0.3616, allocations: 59.88 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.408e-05/0.3617, allocations: 39.8 kB / 1.054 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.811e-05/0.3618, allocations: 16 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.948e-05/0.3619, allocations: 11.98 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.208e-05/0.3619, allocations: 23.84 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.362, allocations: 4 kB / 1.054 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001745/0.3621, allocations: 95.91 kB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.404e-05/0.3622, allocations: 7.984 kB / 1.055 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.756e-05/0.3622, allocations: 23.8 kB / 1.055 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.3623, allocations: 80.12 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.3624, allocations: 0 / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.11e-07/0.3624, allocations: 0 / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.3624, allocations: 0 / 1.055 GB, free: 6.297 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004043/0.3628, allocations: 363.4 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.3628, allocations: 8.031 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.044e-05/0.3629, allocations: 8.844 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.363, allocations: 172.3 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.363, allocations: 4.375 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.363, allocations: 4.312 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001451/0.3632, allocations: 57.98 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.3632, allocations: 0 / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.3632, allocations: 4 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.3632, allocations: 0 / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.185e-05/0.3633, allocations: 31.97 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003331/0.3636, allocations: 284.7 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.115e-05/0.3637, allocations: 34.56 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.357e-05/0.3638, allocations: 8.922 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004707/0.3643, allocations: 0.5661 MB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.3643, allocations: 30.56 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.3643, allocations: 0 / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002682/0.3646, allocations: 73.52 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.3646, allocations: 51.41 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.582e-05/0.3647, allocations: 117.8 kB / 1.056 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.22e-05/0.3647, allocations: 25.7 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.562e-05/0.3648, allocations: 100.2 kB / 1.056 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.527e-05/0.3648, allocations: 3.906 kB / 1.056 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/0.3648, allocations: 17.72 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.184e-05/0.3649, allocations: 314.8 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.345e-05/0.365, allocations: 11.98 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.553e-05/0.365, allocations: 8 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.885e-05/0.3651, allocations: 32.84 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3651, allocations: 0 / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000123/0.3652, allocations: 65.58 kB / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.3653, allocations: 8 kB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.3653, allocations: 0 / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-06/0.3653, allocations: 0 / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.478e-05/0.3653, allocations: 4 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.3654, allocations: 0 / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.587e-05/0.3654, allocations: 7.984 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.3654, allocations: 4.031 kB / 1.057 GB, free: 3.559 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 (2): * Single equations (assignments): 2 * 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.598e-05/0.3655, allocations: 119.2 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.402e-05/0.3655, allocations: 3.938 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001521/0.3657, allocations: 65.14 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.3657, allocations: 4 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.3657, allocations: 0 / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3657, allocations: 0 / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.3659, allocations: 169.6 kB / 1.057 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3659, allocations: 4.031 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.373e-05/0.3659, allocations: 7.984 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3659, allocations: 0 / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-06/0.3659, allocations: 0 / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3659, allocations: 0 / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3659, allocations: 0 / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.3661, allocations: 159.3 kB / 1.057 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.606e-05/0.3661, allocations: 89.03 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.3662, allocations: 0 / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.115e-05/0.3662, allocations: 4 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.438e-05/0.3663, allocations: 0 / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/0.3663, allocations: 0 / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.991e-05/0.3663, allocations: 95.7 kB / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3663, allocations: 0 / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000233/0.3666, allocations: 15.94 kB / 1.058 GB, free: 2.738 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 (2): * Single equations (assignments): 2 * 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.000141/0.3667, allocations: 118.2 kB / 1.058 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001246/0.3668, allocations: 19.98 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.3669, allocations: 0 / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.568e-05/0.3669, allocations: 15.92 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.3671, allocations: 9.406 kB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002889/0.3674, allocations: 140.4 kB / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.3676, allocations: 0.6809 MB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.474e-05/0.3677, allocations: 3.984 kB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.121e-05/0.3677, allocations: 15.42 kB / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.3677, allocations: 0 / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of Templates: time 0.002335/0.37, allocations: 465.1 kB / 1.059 GB, free: 1.23 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Splice.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Splice.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Splice.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Splice.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Splice.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Splice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Splice.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Splice_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Splice.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Splice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches