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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 104 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 195.9 kB / 16.53 MB, free: 6.684 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.247/1.247, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.138/2.138, allocations: 390.3 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.001291, allocations: 59.91 kB / 0.8127 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5679/0.5692, allocations: 140.4 MB / 0.9497 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001477/0.5707, allocations: 0.5756 MB / 0.9503 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.5718, allocations: 1.245 MB / 0.9515 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.407e-05/0.5718, allocations: 0 / 0.9515 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.859e-06/0.5718, allocations: 0 / 0.9515 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.047e-06/0.5719, allocations: 0 / 0.9515 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003363/0.5722, allocations: 68.5 kB / 0.9516 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.167e-05/0.5722, allocations: 6.172 kB / 0.9516 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.749e-05/0.5723, allocations: 1.438 kB / 0.9516 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.253e-05/0.5723, allocations: 0 / 0.9516 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.241e-05/0.5723, allocations: 5.406 kB / 0.9516 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.632e-06/0.5724, allocations: 0 / 0.9516 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002032/0.5726, allocations: 99.53 kB / 0.9517 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.925e-06/0.5726, allocations: 0 / 0.9517 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.463e-05/0.5726, allocations: 5.312 kB / 0.9517 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.5727, allocations: 51.44 kB / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.5727, allocations: 1.906 kB / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5727, allocations: 4 kB / 0.9518 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.708e-06/0.5727, allocations: 0 / 0.9518 GB, free: 7.59 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.0002263/0.573, allocations: 324.5 kB / 0.9521 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.573, allocations: 10.38 kB / 0.9521 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.549e-05/0.573, allocations: 30.75 kB / 0.9521 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.289e-05/0.5731, allocations: 2.312 kB / 0.9521 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.841e-05/0.5731, allocations: 160.4 kB / 0.9523 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.234e-06/0.5731, allocations: 4.312 kB / 0.9523 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.5731, allocations: 1.438 kB / 0.9523 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.315e-05/0.5732, allocations: 39.97 kB / 0.9523 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.5732, allocations: 4 kB / 0.9523 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.5733, allocations: 0 / 0.9523 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.5733, allocations: 3.938 kB / 0.9523 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.852e-05/0.5733, allocations: 2.594 kB / 0.9523 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.15e-05/0.5734, allocations: 147.1 kB / 0.9525 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.101e-05/0.5734, allocations: 19.8 kB / 0.9525 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.471e-05/0.5734, allocations: 18.03 kB / 0.9525 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003815/0.5738, allocations: 0.56 MB / 0.953 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.254e-05/0.5738, allocations: 34.5 kB / 0.9531 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.5738, allocations: 1.125 kB / 0.9531 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001054/0.574, allocations: 38.38 kB / 0.9531 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.673e-05/0.574, allocations: 56.69 kB / 0.9532 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.188e-05/0.574, allocations: 89.86 kB / 0.9532 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.628e-06/0.574, allocations: 25.7 kB / 0.9533 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.067e-06/0.574, allocations: 80.14 kB / 0.9533 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.574, allocations: 0.6875 kB / 0.9533 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.11e-05/0.5741, allocations: 20.66 kB / 0.9534 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.269e-05/0.5741, allocations: 314.8 kB / 0.9537 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.927e-06/0.5741, allocations: 1.594 kB / 0.9537 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.022e-06/0.5741, allocations: 5.375 kB / 0.9537 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.006e-05/0.5742, allocations: 12.31 kB / 0.9537 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.5742, allocations: 0 / 0.9537 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 3.781e-05/0.5742, allocations: 31.86 kB / 0.9537 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.5742, allocations: 7.906 kB / 0.9537 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.5742, allocations: 0 / 0.9537 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.5742, allocations: 1.312 kB / 0.9537 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.731e-05/0.5743, allocations: 1.312 kB / 0.9537 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.5743, allocations: 0 / 0.9537 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.021e-05/0.5743, allocations: 9.344 kB / 0.9537 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.5743, allocations: 0 / 0.9537 GB, free: 5.277 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.5744, allocations: 115.1 kB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-06/0.5744, allocations: 5.188 kB / 0.9538 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.73e-05/0.5744, allocations: 35.77 kB / 0.9539 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.5744, allocations: 1.281 kB / 0.9539 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.5745, allocations: 0 / 0.9539 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.5745, allocations: 4.031 kB / 0.9539 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.061e-05/0.5745, allocations: 151 kB / 0.954 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.5745, allocations: 0 / 0.954 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.272e-05/0.5745, allocations: 2.531 kB / 0.954 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5745, allocations: 3.938 kB / 0.954 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.5745, allocations: 1.438 kB / 0.954 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.5745, allocations: 0 / 0.954 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.5746, allocations: 0 / 0.954 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.196e-05/0.5746, allocations: 63.38 kB / 0.9541 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.178e-05/0.5746, allocations: 86.17 kB / 0.9542 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.265e-06/0.5746, allocations: 4 kB / 0.9542 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.248e-06/0.5746, allocations: 5.219 kB / 0.9542 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.281e-05/0.5747, allocations: 3.984 kB / 0.9542 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-06/0.5747, allocations: 1.312 kB / 0.9542 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.003e-05/0.5747, allocations: 75.28 kB / 0.9543 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/0.5747, allocations: 0 / 0.9543 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001775/0.5749, allocations: 10.16 kB / 0.9543 GB, free: 4.648 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 (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.0002243/0.5751, allocations: 0.6145 MB / 0.9549 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.759e-05/0.5752, allocations: 2.875 kB / 0.9549 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.5752, allocations: 0 / 0.9549 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.292e-06/0.5752, allocations: 2.75 kB / 0.9549 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001153/0.5753, allocations: 7.219 kB / 0.9549 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002059/0.5755, allocations: 110.1 kB / 0.955 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.39e-05/0.5756, allocations: 0.678 MB / 0.9557 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.718e-05/0.5756, allocations: 1.219 kB / 0.9557 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.141e-05/0.5756, allocations: 7.438 kB / 0.9557 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.5756, allocations: 0 / 0.9557 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01522/0.5909, allocations: 1.001 MB / 0.9566 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.218/7.809, allocations: 9.797 kB / 0.9567 GB, free: 2.578 MB / 0.7169 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction.fmu > 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/jenkins1/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