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.001765/0.001765, 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.002191/0.002192, allocations: 191.7 kB / 16.13 MB, free: 6.695 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.379/1.379, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.769/2.769, allocations: 472.6 MB / 0.7447 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 71.7 kB / 0.9114 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3553, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001894/0.3573, allocations: 0.6348 MB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001657/0.3589, allocations: 1.27 MB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.318e-05/0.359, allocations: 0 / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.969e-05/0.359, allocations: 0 / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.532e-06/0.359, allocations: 0 / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003509/0.3594, allocations: 47.89 kB / 1.069 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.782e-05/0.3594, allocations: 8 kB / 1.069 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.8e-05/0.3595, allocations: 3.938 kB / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.819e-05/0.3595, allocations: 3.938 kB / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.031e-05/0.3596, allocations: 0 / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.838e-06/0.3596, allocations: 0 / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.3598, allocations: 103.8 kB / 1.07 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.22e-05/0.3599, allocations: 0 / 1.07 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.505e-05/0.3599, allocations: 3.984 kB / 1.07 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.36, allocations: 47.95 kB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3601, allocations: 4 kB / 1.07 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3601, allocations: 4 kB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.3601, allocations: 0 / 1.07 GB, free: 8.676 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.0003741/0.3605, allocations: 329.3 kB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.3605, allocations: 12.03 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.257e-05/0.3605, allocations: 0.9375 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.3607, allocations: 160.4 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.3607, allocations: 384 / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.693e-06/0.3607, allocations: 384 / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.3608, allocations: 34.02 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.3608, allocations: 4 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.3608, allocations: 3.984 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3608, allocations: 0 / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.044e-05/0.3609, allocations: 7.875 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001641/0.361, allocations: 149.7 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.951e-05/0.3611, allocations: 14.58 kB / 1.07 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.579e-05/0.3611, allocations: 4.859 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006297/0.3617, allocations: 0.574 MB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.3618, allocations: 38.5 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.3618, allocations: 0 / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001436/0.3619, allocations: 33.64 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.362, allocations: 51.41 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.775e-05/0.362, allocations: 93.84 kB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.362, allocations: 29.83 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.67e-05/0.3621, allocations: 84.14 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.378e-05/0.3621, allocations: 7.906 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.532e-05/0.3621, allocations: 9.719 kB / 1.071 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3622, allocations: 310.8 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.207e-05/0.3623, allocations: 4 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.621e-06/0.3623, allocations: 0 / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.57e-05/0.3623, allocations: 12.92 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.3623, allocations: 0 / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.177e-05/0.3624, allocations: 41.62 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.3624, allocations: 7.938 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3624, allocations: 7.938 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.3624, allocations: 0 / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.319e-05/0.3625, allocations: 0 / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3625, allocations: 0 / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.252e-05/0.3625, allocations: 0 / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.3625, allocations: 4 kB / 1.072 GB, free: 6.324 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 6.565e-05/0.3626, allocations: 109.9 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.385e-06/0.3626, allocations: 3.938 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.891e-05/0.3627, allocations: 44.75 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3627, allocations: 0 / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.3627, allocations: 4 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3627, allocations: 0 / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.62e-05/0.3628, allocations: 145.7 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3628, allocations: 8.016 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.695e-05/0.3628, allocations: 4 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3629, allocations: 7.875 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-06/0.3629, allocations: 0 / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3629, allocations: 0 / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3629, allocations: 0 / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.242e-05/0.363, allocations: 57.14 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.409e-05/0.363, allocations: 81.38 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.363, allocations: 7.969 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.078e-05/0.363, allocations: 0 / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.826e-05/0.363, allocations: 3.938 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-06/0.3631, allocations: 0 / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.013e-05/0.3631, allocations: 75.28 kB / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3631, allocations: 4 kB / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001957/0.3633, allocations: 4 kB / 1.072 GB, free: 5.672 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.0001853/0.3635, allocations: 107.2 kB / 1.072 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.303e-05/0.3636, allocations: 8 kB / 1.072 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3636, allocations: 0 / 1.072 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.921e-06/0.3636, allocations: 0 / 1.072 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.3637, allocations: 7.938 kB / 1.072 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001862/0.3639, allocations: 70.77 kB / 1.072 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.3642, allocations: 0.6692 MB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.552e-05/0.3642, allocations: 19.98 kB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.168e-05/0.3642, allocations: 7.438 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3642, allocations: 0 / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of Templates: time 0.002422/0.3666, allocations: 310.2 kB / 1.073 GB, free: 4.422 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