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.00121/0.00121, 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.001218/0.001218, allocations: 189.2 kB / 16.25 MB, free: 6.59 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.352/1.352, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.734/2.734, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 71.02 kB / 0.8986 GB, free: 37.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3171, allocations: 157.4 MB / 1.052 GB, free: 8.766 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Splice): time 0.003097/0.3202, allocations: 1.561 MB / 1.054 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.3214, allocations: 0.6509 MB / 1.054 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.152e-05/0.3214, allocations: 0 / 1.054 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.596e-05/0.3215, allocations: 3.938 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.181e-05/0.3215, allocations: 3.938 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003953/0.322, allocations: 75.86 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.442e-05/0.3221, allocations: 39.86 kB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.3222, allocations: 11.98 kB / 1.055 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.261e-05/0.3223, allocations: 15.94 kB / 1.055 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.679e-05/0.3223, allocations: 23.84 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.377e-05/0.3224, allocations: 4 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002033/0.3226, allocations: 95.91 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.097e-05/0.3226, allocations: 7.984 kB / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.247e-05/0.3226, allocations: 23.86 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002983/0.3229, allocations: 84.11 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3229, allocations: 0 / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.513e-06/0.323, allocations: 0 / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.323, allocations: 4 kB / 1.055 GB, free: 6.145 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.0005673/0.3235, allocations: 359.4 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001214/0.3237, allocations: 8.625 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.827e-05/0.3237, allocations: 12.84 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.3239, allocations: 168.3 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.3239, allocations: 384 / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.3239, allocations: 8.312 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001769/0.3241, allocations: 65.91 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3241, allocations: 0 / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.3241, allocations: 3.938 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.3241, allocations: 0 / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.862e-05/0.3242, allocations: 27.98 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003764/0.3246, allocations: 284.7 kB / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.847e-05/0.3247, allocations: 34.5 kB / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.272e-05/0.3248, allocations: 12.92 kB / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005038/0.3253, allocations: 0.5622 MB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.3253, allocations: 34.56 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.3253, allocations: 0 / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002549/0.3256, allocations: 65.52 kB / 1.056 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.3256, allocations: 51.41 kB / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.3257, allocations: 129.8 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.3258, allocations: 25.83 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.555e-05/0.3258, allocations: 96.06 kB / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.609e-05/0.3258, allocations: 3.906 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.269e-05/0.3259, allocations: 17.72 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.326, allocations: 318.8 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.614e-05/0.3261, allocations: 12 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.378e-05/0.3261, allocations: 7.984 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.122e-05/0.3262, allocations: 28.91 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3262, allocations: 4 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001334/0.3263, allocations: 57.53 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3264, allocations: 4 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3264, allocations: 0 / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.3264, allocations: 0 / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.518e-05/0.3265, allocations: 11.98 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3265, allocations: 0 / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.705e-05/0.3265, allocations: 4 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.613e-06/0.3265, allocations: 4.031 kB / 1.057 GB, free: 3.406 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 7.351e-05/0.3266, allocations: 115.3 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.677e-05/0.3266, allocations: 7.938 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001655/0.3268, allocations: 61.2 kB / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3268, allocations: 0 / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3268, allocations: 7.938 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.3268, allocations: 0 / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.327, allocations: 173.6 kB / 1.057 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.327, allocations: 0 / 1.057 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.68e-05/0.3271, allocations: 7.984 kB / 1.057 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3271, allocations: 0 / 1.057 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.3271, allocations: 4 kB / 1.057 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3271, allocations: 0 / 1.057 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3271, allocations: 0 / 1.057 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.3273, allocations: 159.3 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.373e-05/0.3273, allocations: 85.02 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.3273, allocations: 4 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.203e-05/0.3274, allocations: 0 / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.004e-05/0.3274, allocations: 4 kB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.3275, allocations: 3.984 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000139/0.3276, allocations: 91.28 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.814e-06/0.3276, allocations: 0 / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002382/0.3278, allocations: 23.86 kB / 1.058 GB, free: 2.574 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.0001487/0.328, allocations: 103.3 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001411/0.3282, allocations: 27.98 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3282, allocations: 0 / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.649e-05/0.3282, allocations: 11.98 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002199/0.3284, allocations: 5.562 kB / 1.058 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002977/0.3287, allocations: 146.6 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.3291, allocations: 0.6807 MB / 1.059 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.817e-05/0.3292, allocations: 7.984 kB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.141e-05/0.3292, allocations: 7.438 kB / 1.059 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of SimCode: time 2.71e-07/0.3292, allocations: 4 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of Templates: time 0.002636/0.3318, allocations: 472.8 kB / 1.059 GB, free: 1.066 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