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.001608/0.001608, allocations: 104.3 kB / 16.41 MB, free: 6.457 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.001832/0.001832, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.403/1.403, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.575/2.575, allocations: 461.9 MB / 0.7354 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 63.91 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9185/0.92, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Splice): time 0.002534/0.9226, allocations: 1.484 MB / 1.21 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001062/0.9236, allocations: 0.6505 MB / 1.211 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.568e-05/0.9237, allocations: 0 / 1.211 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.735e-05/0.9237, allocations: 3.938 kB / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.751e-05/0.9238, allocations: 7.938 kB / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003445/0.9242, allocations: 87.66 kB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.191e-05/0.9242, allocations: 27.92 kB / 1.211 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.316e-05/0.9243, allocations: 15.98 kB / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.459e-05/0.9244, allocations: 15.94 kB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.93e-05/0.9245, allocations: 19.92 kB / 1.211 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.9245, allocations: 4 kB / 1.211 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001897/0.9247, allocations: 103.9 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.238e-05/0.9247, allocations: 7.938 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.65e-05/0.9247, allocations: 15.88 kB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001819/0.9249, allocations: 95.75 kB / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.9249, allocations: 0 / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9249, allocations: 0 / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.425e-06/0.9249, allocations: 0 / 1.211 GB, free: 11.04 MB / 0.9356 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.0004331/0.9254, allocations: 361.1 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.9254, allocations: 8.031 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.331e-05/0.9255, allocations: 16.84 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.9256, allocations: 176.2 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.9256, allocations: 384 / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.9256, allocations: 384 / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001517/0.9258, allocations: 58 kB / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.9258, allocations: 3.984 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.9258, allocations: 0 / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.9258, allocations: 3.938 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.926, allocations: 35.91 kB / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003638/0.9263, allocations: 280.8 kB / 1.212 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.84e-05/0.9264, allocations: 22.58 kB / 1.212 GB, free: 9.949 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.004e-05/0.9265, allocations: 20.84 kB / 1.212 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004708/0.927, allocations: 0.5623 MB / 1.212 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.927, allocations: 46.48 kB / 1.212 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.904e-06/0.927, allocations: 0 / 1.212 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0002371/0.9273, allocations: 53.69 kB / 1.212 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.9273, allocations: 51.41 kB / 1.213 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.868e-05/0.9274, allocations: 121.8 kB / 1.213 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.9274, allocations: 25.7 kB / 1.213 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.104e-05/0.9275, allocations: 96.27 kB / 1.213 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.9275, allocations: 3.906 kB / 1.213 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.9275, allocations: 17.7 kB / 1.213 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.9276, allocations: 318.8 kB / 1.213 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.42e-05/0.9277, allocations: 15.92 kB / 1.213 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.386e-05/0.9277, allocations: 8 kB / 1.213 GB, free: 8.43 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.625e-05/0.9278, allocations: 28.91 kB / 1.213 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.9278, allocations: 0 / 1.213 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001203/0.9279, allocations: 57.59 kB / 1.213 GB, free: 8.336 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.928, allocations: 4 kB / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.928, allocations: 0 / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.928, allocations: 0 / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.074e-05/0.9281, allocations: 7.984 kB / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.9281, allocations: 7.984 kB / 1.213 GB, free: 8.316 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.369e-05/0.9281, allocations: 3.938 kB / 1.213 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.273e-06/0.9281, allocations: 4.031 kB / 1.213 GB, free: 8.309 MB / 0.9356 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.963e-05/0.9282, allocations: 121.7 kB / 1.213 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.9282, allocations: 7.891 kB / 1.213 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001523/0.9284, allocations: 65.2 kB / 1.213 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.9284, allocations: 0 / 1.213 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.9284, allocations: 0 / 1.213 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.9284, allocations: 3.938 kB / 1.213 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.9286, allocations: 165.6 kB / 1.214 GB, free: 7.879 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.9286, allocations: 4.031 kB / 1.214 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.163e-05/0.9286, allocations: 4 kB / 1.214 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.9287, allocations: 0 / 1.214 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.9287, allocations: 4 kB / 1.214 GB, free: 7.867 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.9287, allocations: 8 kB / 1.214 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.9287, allocations: 0 / 1.214 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/0.9288, allocations: 155.4 kB / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.173e-05/0.9289, allocations: 85.02 kB / 1.214 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.9289, allocations: 0 / 1.214 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.242e-05/0.929, allocations: 3.984 kB / 1.214 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.322e-05/0.929, allocations: 8 kB / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-06/0.929, allocations: 0 / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.119e-05/0.9291, allocations: 95.64 kB / 1.214 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9291, allocations: 3.938 kB / 1.214 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002355/0.9293, allocations: 15.94 kB / 1.214 GB, free: 7.465 MB / 0.9356 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.0001311/0.9295, allocations: 107.3 kB / 1.214 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000122/0.9296, allocations: 31.91 kB / 1.214 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.9296, allocations: 0 / 1.214 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.357e-05/0.9296, allocations: 12 kB / 1.214 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.9298, allocations: 0 / 1.214 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002714/0.9301, allocations: 160.3 kB / 1.214 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.9304, allocations: 0.6847 MB / 1.215 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.495e-05/0.9304, allocations: 11.44 kB / 1.215 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of SimCode: time 3.31e-07/0.9304, allocations: 0 / 1.215 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of Templates: time 0.001889/0.9323, allocations: 0.7153 MB / 1.216 GB, free: 5.684 MB / 0.9356 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Splice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches