Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.0009332/0.0009336, allocations: 91.52 kB / 15.06 MB, free: 1.078 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.0009932/0.0009934, allocations: 176.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.468/2.468, allocations: 390.9 MB / 0.666 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003248/0.0003251, allocations: 12 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7254/0.7257, allocations: 142.4 MB / 0.9544 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.0006767/0.7264, allocations: 309.9 kB / 0.9547 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.7278, allocations: 1.204 MB / 0.9559 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.105e-05/0.7278, allocations: 1.156 kB / 0.9559 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.253e-05/0.7278, allocations: 0 / 0.9559 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.911e-06/0.7279, allocations: 0 / 0.9559 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/0.7282, allocations: 48.02 kB / 0.956 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.994e-05/0.7282, allocations: 5.156 kB / 0.956 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.7283, allocations: 9.031 kB / 0.956 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.485e-05/0.7283, allocations: 1.125 kB / 0.956 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.05e-05/0.7284, allocations: 0 / 0.956 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.185e-06/0.7284, allocations: 0.9688 kB / 0.956 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.7286, allocations: 94.06 kB / 0.9561 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.492e-06/0.7286, allocations: 1.219 kB / 0.9561 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.677e-05/0.7286, allocations: 25.7 kB / 0.9561 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.695e-05/0.7287, allocations: 38.17 kB / 0.9561 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.7287, allocations: 0 / 0.9561 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.442e-06/0.7287, allocations: 1.438 kB / 0.9561 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.7288, allocations: 4 kB / 0.9561 GB, free: 6.484 MB / 0.7169 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.000204/0.729, allocations: 327.5 kB / 0.9565 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.729, allocations: 8.938 kB / 0.9565 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.756e-05/0.729, allocations: 5.078 kB / 0.9565 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.537e-05/0.7291, allocations: 163 kB / 0.9566 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.7291, allocations: 5.281 kB / 0.9566 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.084e-05/0.7291, allocations: 0 / 0.9566 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.574e-05/0.7292, allocations: 28.02 kB / 0.9567 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.535e-06/0.7293, allocations: 4 kB / 0.9567 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.283e-06/0.7293, allocations: 0 / 0.9567 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.7293, allocations: 1.031 kB / 0.9567 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.185e-05/0.7293, allocations: 9.031 kB / 0.9567 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001104/0.7294, allocations: 146.8 kB / 0.9568 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.688e-05/0.7295, allocations: 20.55 kB / 0.9568 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.376e-05/0.7295, allocations: 6.703 kB / 0.9568 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004109/0.7299, allocations: 0.569 MB / 0.9574 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.729e-05/0.7299, allocations: 31.94 kB / 0.9574 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.163e-06/0.7299, allocations: 0 / 0.9574 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001232/0.7301, allocations: 30.95 kB / 0.9574 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.358e-05/0.7301, allocations: 51.41 kB / 0.9575 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.791e-05/0.7301, allocations: 93.92 kB / 0.9576 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.625e-06/0.7301, allocations: 31.23 kB / 0.9576 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.38e-05/0.7301, allocations: 84.12 kB / 0.9577 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.633e-05/0.7302, allocations: 3.906 kB / 0.9577 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-06/0.7302, allocations: 0 / 0.9577 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.244e-05/0.7302, allocations: 320.1 kB / 0.958 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.295e-06/0.7302, allocations: 1.406 kB / 0.958 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.58e-06/0.7302, allocations: 1.531 kB / 0.958 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.625e-05/0.7303, allocations: 1.188 kB / 0.958 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.7303, allocations: 4.062 kB / 0.958 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.55e-05/0.7303, allocations: 30.92 kB / 0.958 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.7303, allocations: 4.906 kB / 0.958 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.7304, allocations: 3.938 kB / 0.958 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.7304, allocations: 1.188 kB / 0.9581 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.258e-05/0.7304, allocations: 6.391 kB / 0.9581 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.7304, allocations: 0 / 0.9581 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.131e-05/0.7304, allocations: 0 / 0.9581 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.824e-06/0.7305, allocations: 5.516 kB / 0.9581 GB, free: 4.242 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.266e-05/0.7305, allocations: 119.2 kB / 0.9582 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.071e-06/0.7305, allocations: 0 / 0.9582 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.194e-05/0.7306, allocations: 42.72 kB / 0.9582 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.7306, allocations: 3.938 kB / 0.9582 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.7306, allocations: 0 / 0.9582 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.7306, allocations: 1.344 kB / 0.9582 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.124e-05/0.7307, allocations: 149.6 kB / 0.9584 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.7307, allocations: 0.875 kB / 0.9584 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.659e-05/0.7307, allocations: 5.875 kB / 0.9584 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.7307, allocations: 0 / 0.9584 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.67e-06/0.7307, allocations: 1.312 kB / 0.9584 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.7307, allocations: 3.984 kB / 0.9584 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.7307, allocations: 1.188 kB / 0.9584 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.402e-05/0.7308, allocations: 62.84 kB / 0.9584 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.518e-05/0.7308, allocations: 79.08 kB / 0.9585 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.938e-06/0.7308, allocations: 5.219 kB / 0.9585 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.006e-05/0.7309, allocations: 3.984 kB / 0.9585 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.412e-05/0.7309, allocations: 5.266 kB / 0.9585 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.7309, allocations: 1.156 kB / 0.9585 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.558e-06/0.7309, allocations: 75.28 kB / 0.9586 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7309, allocations: 0 / 0.9586 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002042/0.7311, allocations: 6 kB / 0.9586 GB, free: 3.613 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001533/0.7313, allocations: 109.5 kB / 0.9587 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.348e-05/0.7313, allocations: 7.469 kB / 0.9587 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.7313, allocations: 0 / 0.9587 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.406e-06/0.7314, allocations: 6.156 kB / 0.9587 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.7315, allocations: 9.344 kB / 0.9587 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001711/0.7317, allocations: 71.8 kB / 0.9588 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.121e-05/0.7318, allocations: 0.6744 MB / 0.9595 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.114e-05/0.7318, allocations: 5.781 kB / 0.9595 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.311e-05/0.7318, allocations: 8.5 kB / 0.9595 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of SimCode: time 7.61e-07/0.7318, allocations: 0 / 0.9595 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of Templates: time 0.002181/0.734, allocations: 300 kB / 0.9598 GB, free: 2.535 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches