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.001712/0.001712, allocations: 107.9 kB / 16.27 MB, free: 6.004 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.001974/0.001974, allocations: 187.4 kB / 17.2 MB, free: 5.617 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.441/1.441, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.743/2.743, allocations: 482.4 MB / 0.7553 GB, free: 7.012 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 77.28 kB / 0.9245 GB, free: 15.99 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9151/0.917, allocations: 162.2 MB / 1.083 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.002184/0.9193, allocations: 0.5788 MB / 1.083 GB, free: 1.301 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001639/0.921, allocations: 1.249 MB / 1.085 GB, free: 388 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.805e-05/0.921, allocations: 1.062 kB / 1.085 GB, free: 388 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.341e-05/0.921, allocations: 0 / 1.085 GB, free: 388 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.189e-06/0.921, allocations: 0 / 1.085 GB, free: 388 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.9214, allocations: 69.69 kB / 1.085 GB, free: 356 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.021e-05/0.9215, allocations: 4.969 kB / 1.085 GB, free: 352 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.851e-05/0.9215, allocations: 2.234 kB / 1.085 GB, free: 352 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.434e-05/0.9216, allocations: 4.938 kB / 1.085 GB, free: 348 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.398e-05/0.9216, allocations: 6.391 kB / 1.085 GB, free: 344 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.666e-06/0.9216, allocations: 0 / 1.085 GB, free: 344 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002606/0.9219, allocations: 95.39 kB / 1.085 GB, free: 320 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.027e-05/0.9219, allocations: 1.578 kB / 1.085 GB, free: 320 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.973e-05/0.9219, allocations: 8.984 kB / 1.085 GB, free: 312 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001462/0.9221, allocations: 48.55 kB / 1.085 GB, free: 300 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.9221, allocations: 0 / 1.085 GB, free: 300 kB / 0.8262 GB Notification: Performance of FrontEnd: time 2.986e-06/0.9221, allocations: 4.625 kB / 1.085 GB, free: 296 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.9221, allocations: 3.938 kB / 1.085 GB, free: 292 kB / 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.0003149/0.9224, allocations: 325.8 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.9225, allocations: 8.969 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.855e-05/0.9225, allocations: 1.594 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.9226, allocations: 161.7 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.9227, allocations: 1.562 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.9227, allocations: 1.031 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.9228, allocations: 40.39 kB / 1.085 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.9228, allocations: 0.7188 kB / 1.085 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.9228, allocations: 0.6562 kB / 1.085 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.9229, allocations: 4.844 kB / 1.085 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.269e-05/0.9229, allocations: 1.719 kB / 1.085 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001846/0.9231, allocations: 144.2 kB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.365e-05/0.9231, allocations: 21.11 kB / 1.086 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.117e-05/0.9232, allocations: 10.17 kB / 1.086 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007031/0.9239, allocations: 0.567 MB / 1.086 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.9239, allocations: 35.25 kB / 1.086 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.9239, allocations: 0 / 1.086 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.0001546/0.9241, allocations: 37.45 kB / 1.086 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.9241, allocations: 55.41 kB / 1.086 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.064e-05/0.9242, allocations: 94.73 kB / 1.086 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.9242, allocations: 26.8 kB / 1.086 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.087e-05/0.9243, allocations: 80.14 kB / 1.087 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/0.9243, allocations: 5.031 kB / 1.087 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.021e-05/0.9244, allocations: 11.72 kB / 1.087 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001591/0.9245, allocations: 312.8 kB / 1.087 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.199e-05/0.9245, allocations: 1.188 kB / 1.087 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.582e-06/0.9245, allocations: 1.062 kB / 1.087 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.468e-05/0.9246, allocations: 15.88 kB / 1.087 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.9246, allocations: 1.281 kB / 1.087 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.531e-05/0.9247, allocations: 36.56 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.9247, allocations: 12.69 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.9247, allocations: 0 / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.9247, allocations: 2 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.89e-05/0.9248, allocations: 1.344 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.9248, allocations: 2.109 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.086e-05/0.9248, allocations: 0 / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.9248, allocations: 4.031 kB / 1.087 GB, free: 14.04 MB / 0.8419 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 9.91e-05/0.9249, allocations: 109.1 kB / 1.087 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.036e-05/0.9249, allocations: 4.688 kB / 1.087 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.925, allocations: 40.98 kB / 1.087 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.9251, allocations: 0 / 1.087 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.9251, allocations: 0.9375 kB / 1.087 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.9251, allocations: 0 / 1.087 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.9252, allocations: 149.9 kB / 1.087 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.9252, allocations: 0 / 1.087 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.831e-05/0.9252, allocations: 10.34 kB / 1.087 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.9253, allocations: 7.922 kB / 1.087 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-06/0.9253, allocations: 1.219 kB / 1.087 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.9253, allocations: 4 kB / 1.087 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.9253, allocations: 2.125 kB / 1.087 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.516e-05/0.9254, allocations: 60.78 kB / 1.087 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.583e-05/0.9254, allocations: 79.88 kB / 1.087 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.9255, allocations: 6.281 kB / 1.087 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.9255, allocations: 0 / 1.087 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.492e-05/0.9255, allocations: 1.906 kB / 1.087 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.9255, allocations: 0 / 1.087 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.859e-05/0.9256, allocations: 76.69 kB / 1.087 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9256, allocations: 0 / 1.087 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001965/0.9258, allocations: 6.031 kB / 1.087 GB, free: 13.44 MB / 0.8419 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.0002122/0.926, allocations: 107.9 kB / 1.088 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 8.779e-05/0.9261, allocations: 12.02 kB / 1.088 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.9261, allocations: 0 / 1.088 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.889e-06/0.9261, allocations: 3.188 kB / 1.088 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.9262, allocations: 1.156 kB / 1.088 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002527/0.9265, allocations: 114.1 kB / 1.088 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.9269, allocations: 0.6708 MB / 1.088 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.866e-05/0.9269, allocations: 13.42 kB / 1.088 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of SimCode: time 3.01e-07/0.9269, allocations: 0 / 1.088 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of Templates: time 0.002453/0.9294, allocations: 436.6 kB / 1.089 GB, free: 12.47 MB / 0.8419 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=400 -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