Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009031/0.0009031, allocations: 80.44 kB / 19.17 MB, free: 0.7305 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009395/0.0009395, allocations: 165.2 kB / 22.46 MB, free: 2.098 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9069/0.9069, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.764/1.764, allocations: 377.8 MB / 0.6221 GB, free: 8.656 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.464e-06/2.464e-06, allocations: 0 / 0.981 GB, free: 2.523 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.824e-05/3.071e-05, allocations: 6.219 kB / 0.981 GB, free: 2.516 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001935/0.001966, allocations: 0.5916 MB / 0.9816 GB, free: 1.926 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001879/0.003845, allocations: 1.272 MB / 0.9828 GB, free: 0.6367 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.739e-05/0.003863, allocations: 0 / 0.9828 GB, free: 0.6367 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 1.55e-05/0.003878, allocations: 0 / 0.9828 GB, free: 0.6367 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.583e-06/0.003885, allocations: 4 kB / 0.9828 GB, free: 0.6328 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.004325, allocations: 67.69 kB / 0.9829 GB, free: 0.5664 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 5.95e-05/0.004384, allocations: 7.969 kB / 0.9829 GB, free: 0.5586 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 5.355e-05/0.004438, allocations: 12 kB / 0.9829 GB, free: 0.5469 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 2.759e-05/0.004465, allocations: 0 / 0.9829 GB, free: 0.5469 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.446e-05/0.00451, allocations: 0 / 0.9829 GB, free: 0.5469 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.004522, allocations: 0 / 0.9829 GB, free: 0.5469 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003174/0.00484, allocations: 107.8 kB / 0.983 GB, free: 452 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.041e-05/0.00485, allocations: 0 / 0.983 GB, free: 452 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.684e-05/0.004867, allocations: 4 kB / 0.983 GB, free: 448 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001797/0.005047, allocations: 83.77 kB / 0.9831 GB, free: 364 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.005051, allocations: 0 / 0.9831 GB, free: 364 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.623e-06/0.005052, allocations: 0 / 0.9831 GB, free: 364 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.005058, allocations: 0 / 0.9831 GB, free: 364 kB / 0.9323 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.0003012/0.00536, allocations: 258.2 kB / 0.9834 GB, free: 76 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.005405, allocations: 8.031 kB / 0.9834 GB, free: 68 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.431e-05/0.005439, allocations: 30.75 kB / 0.9834 GB, free: 28 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.508e-05/0.005464, allocations: 0.9375 kB / 0.9834 GB, free: 28 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.104e-05/0.005555, allocations: 105.8 kB / 0.9835 GB, free: 15.9 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.005569, allocations: 4.375 kB / 0.9835 GB, free: 15.89 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.777e-06/0.005578, allocations: 4.375 kB / 0.9835 GB, free: 15.89 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.005682, allocations: 34.25 kB / 0.9835 GB, free: 15.85 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.00569, allocations: 192 / 0.9835 GB, free: 15.85 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.0057, allocations: 8.109 kB / 0.9836 GB, free: 15.84 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.005704, allocations: 0 / 0.9836 GB, free: 15.84 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.028e-05/0.005725, allocations: 7.875 kB / 0.9836 GB, free: 15.84 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000144/0.005869, allocations: 120.8 kB / 0.9837 GB, free: 15.68 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 4.382e-05/0.005912, allocations: 14.58 kB / 0.9837 GB, free: 15.65 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.825e-05/0.005931, allocations: 12.89 kB / 0.9837 GB, free: 15.64 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000319/0.00625, allocations: 47.95 kB / 0.9837 GB, free: 15.59 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.006273, allocations: 30.56 kB / 0.9838 GB, free: 15.55 MB / 0.948 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.006274, allocations: 0 / 0.9838 GB, free: 15.55 MB / 0.948 GB Notification: Performance of matching and sorting (n=1): time 0.0001487/0.006423, allocations: 45.58 kB / 0.9838 GB, free: 15.5 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.116e-05/0.006454, allocations: 51.41 kB / 0.9839 GB, free: 15.44 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.447e-05/0.006489, allocations: 89.86 kB / 0.984 GB, free: 15.34 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.193e-05/0.006501, allocations: 25.7 kB / 0.984 GB, free: 15.31 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 2.454e-05/0.006525, allocations: 80.14 kB / 0.9841 GB, free: 15.23 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.325e-05/0.006548, allocations: 4.125 kB / 0.9841 GB, free: 15.22 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.73e-05/0.006586, allocations: 13.72 kB / 0.9841 GB, free: 15.2 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.722e-05/0.006683, allocations: 314.8 kB / 0.9844 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.989e-06/0.006693, allocations: 0 / 0.9844 GB, free: 14.89 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.116e-06/0.006701, allocations: 4 kB / 0.9844 GB, free: 14.88 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.034e-05/0.006731, allocations: 8.859 kB / 0.9844 GB, free: 14.87 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.006736, allocations: 0 / 0.9844 GB, free: 14.87 MB / 0.948 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.604e-05/0.006802, allocations: 37.64 kB / 0.9844 GB, free: 14.83 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.006817, allocations: 4 kB / 0.9844 GB, free: 14.82 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.006823, allocations: 96 / 0.9844 GB, free: 14.82 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.00684, allocations: 7.938 kB / 0.9844 GB, free: 14.82 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.5e-05/0.006895, allocations: 7.984 kB / 0.9844 GB, free: 14.81 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.0069, allocations: 0 / 0.9844 GB, free: 14.81 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.156e-05/0.006912, allocations: 0 / 0.9844 GB, free: 14.81 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.006918, allocations: 0 / 0.9844 GB, free: 14.81 MB / 0.948 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 7.202e-05/0.00699, allocations: 109.8 kB / 0.9845 GB, free: 14.69 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.234e-06/0.006997, allocations: 0 / 0.9845 GB, free: 14.69 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.963e-05/0.007097, allocations: 44.62 kB / 0.9846 GB, free: 14.64 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.0071, allocations: 7.969 kB / 0.9846 GB, free: 14.64 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.007104, allocations: 0 / 0.9846 GB, free: 14.64 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.007107, allocations: 4 kB / 0.9846 GB, free: 14.63 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.736e-05/0.007185, allocations: 112.8 kB / 0.9847 GB, free: 14.48 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.007186, allocations: 0 / 0.9847 GB, free: 14.48 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.017e-05/0.007206, allocations: 4 kB / 0.9847 GB, free: 14.48 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.007209, allocations: 0 / 0.9847 GB, free: 14.48 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-06/0.007214, allocations: 0 / 0.9847 GB, free: 14.48 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.007217, allocations: 3.938 kB / 0.9847 GB, free: 14.47 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.007218, allocations: 3.938 kB / 0.9847 GB, free: 14.47 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.764e-05/0.007286, allocations: 65.12 kB / 0.9848 GB, free: 14.39 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.989e-06/0.007291, allocations: 0 / 0.9848 GB, free: 14.39 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.099e-05/0.007302, allocations: 7.938 kB / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.021e-05/0.007312, allocations: 3.938 kB / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.297e-05/0.007325, allocations: 4 kB / 0.9848 GB, free: 14.37 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-06/0.007328, allocations: 0 / 0.9848 GB, free: 14.37 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.531e-05/0.007353, allocations: 79.31 kB / 0.9849 GB, free: 14.29 MB / 0.948 GB Notification: Performance of sort global known variables: time 9e-08/0.007353, allocations: 3.938 kB / 0.9849 GB, free: 14.29 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002258/0.007579, allocations: 15.92 kB / 0.9849 GB, free: 14.27 MB / 0.948 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.0004036/0.007983, allocations: 0.6008 MB / 0.9855 GB, free: 13.64 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 7.55e-05/0.008058, allocations: 4 kB / 0.9855 GB, free: 13.64 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.00806, allocations: 0 / 0.9855 GB, free: 13.64 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 7.364e-06/0.008068, allocations: 7.938 kB / 0.9855 GB, free: 13.63 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001458/0.008213, allocations: 9.828 kB / 0.9855 GB, free: 13.62 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003234/0.008537, allocations: 106.6 kB / 0.9856 GB, free: 13.48 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.055e-05/0.008587, allocations: 59.22 kB / 0.9857 GB, free: 13.4 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.45e-05/0.008612, allocations: 4.125 kB / 0.9857 GB, free: 13.4 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.28e-05/0.008635, allocations: 12.5 kB / 0.9857 GB, free: 13.39 MB / 0.948 GB Notification: Performance of SimCode: time 5.51e-07/0.008635, allocations: 0 / 0.9857 GB, free: 13.39 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01643/0.02507, allocations: 1.763 MB / 0.9874 GB, free: 11.75 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.995/7.02, allocations: 7.422 kB / 0.9874 GB, free: 11.75 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunction.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.047610152512789]