Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.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.001571/0.001571, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.00155/0.00155, allocations: 212.3 kB / 22.25 MB, free: 4.859 MB / 14.72 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 1.448/1.448, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.337/3.337, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|yR1.1.|yI1.1.|yR2.1.|yR2.2.|yI2.1.|yI2.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|yR1.1.|yI1.1.|yR2.1.|yR2.2.|yI2.1.|yI2.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 64.06 kB / 1.186 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3692, allocations: 181.9 MB / 1.364 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.00194/0.3711, allocations: 0.5587 MB / 1.364 GB, free: 13.04 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002123/0.3732, allocations: 1.263 MB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.394e-05/0.3732, allocations: 0 / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.3734, allocations: 15.92 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.108e-05/0.3734, allocations: 0 / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008359/0.3742, allocations: 291.2 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001762/0.3744, allocations: 75.81 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 5.407e-05/0.3745, allocations: 7.984 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 5.686e-05/0.3745, allocations: 31.92 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/0.3746, allocations: 43.89 kB / 1.366 GB, free: 11.31 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.3747, allocations: 4 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004669/0.3751, allocations: 227.6 kB / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.533e-05/0.3752, allocations: 11.94 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.597e-05/0.3752, allocations: 31.91 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004243/0.3757, allocations: 255.2 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.3757, allocations: 4 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.274e-06/0.3757, allocations: 0 / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.3757, allocations: 0 / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005327/0.3762, allocations: 367.4 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.3762, allocations: 12.03 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.783e-05/0.3763, allocations: 80.22 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.3765, allocations: 197.8 kB / 1.367 GB, free: 10.08 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.9e-05/0.3766, allocations: 158.9 kB / 1.367 GB, free: 9.926 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001771/0.3768, allocations: 158.9 kB / 1.368 GB, free: 9.77 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.313e-05/0.3768, allocations: 109 kB / 1.368 GB, free: 9.656 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.37e-05/0.3769, allocations: 75.28 kB / 1.368 GB, free: 9.582 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-05/0.377, allocations: 154.6 kB / 1.368 GB, free: 9.43 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.251e-05/0.377, allocations: 150.6 kB / 1.368 GB, free: 9.281 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.699e-05/0.3771, allocations: 158.5 kB / 1.368 GB, free: 9.125 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003442/0.3774, allocations: 417.6 kB / 1.369 GB, free: 8.688 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.3776, allocations: 169.1 kB / 1.369 GB, free: 8.512 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.697e-05/0.3776, allocations: 84.14 kB / 1.369 GB, free: 8.426 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.81e-05/0.3777, allocations: 75.28 kB / 1.369 GB, free: 8.352 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.337e-05/0.3777, allocations: 113.8 kB / 1.369 GB, free: 8.23 MB / 1.061 GB Notification: Performance of pre-optimization done (n=0): time 8.12e-07/0.3777, allocations: 0 / 1.369 GB, free: 8.23 MB / 1.061 GB Notification: Performance of matching and sorting (n=0): time 0.0001004/0.3778, allocations: 49.52 kB / 1.369 GB, free: 8.176 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/0.378, allocations: 126.7 kB / 1.369 GB, free: 8.039 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.3781, allocations: 145.7 kB / 1.369 GB, free: 7.887 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.3782, allocations: 29.7 kB / 1.369 GB, free: 7.852 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.004e-05/0.3782, allocations: 92.12 kB / 1.369 GB, free: 7.758 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.545e-06/0.3782, allocations: 0 / 1.369 GB, free: 7.758 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.587e-05/0.3783, allocations: 45.7 kB / 1.369 GB, free: 7.707 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001712/0.3785, allocations: 314.8 kB / 1.37 GB, free: 7.391 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.3786, allocations: 101.6 kB / 1.37 GB, free: 7.285 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.3788, allocations: 101.6 kB / 1.37 GB, free: 7.18 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001476/0.3789, allocations: 94.52 kB / 1.37 GB, free: 7.078 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3789, allocations: 0 / 1.37 GB, free: 7.078 MB / 1.061 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004472/0.3794, allocations: 268.9 kB / 1.37 GB, free: 6.797 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.256e-05/0.3794, allocations: 45.62 kB / 1.37 GB, free: 6.746 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3794, allocations: 3.984 kB / 1.37 GB, free: 6.742 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.3794, allocations: 3.938 kB / 1.37 GB, free: 6.738 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.985e-06/0.3794, allocations: 3.984 kB / 1.37 GB, free: 6.734 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.3795, allocations: 0 / 1.37 GB, free: 6.734 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003186/0.3798, allocations: 28 kB / 1.37 GB, free: 6.707 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/0.3798, allocations: 15.98 kB / 1.37 GB, free: 6.691 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI2[2],yI2[1],yI1[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001691/0.38, allocations: 197.1 kB / 1.371 GB, free: 6.488 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.52e-05/0.3801, allocations: 112.9 kB / 1.371 GB, free: 6.371 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.623e-05/0.3802, allocations: 116.5 kB / 1.371 GB, free: 6.242 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/0.3803, allocations: 184.3 kB / 1.371 GB, free: 6.055 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00011/0.3804, allocations: 180.2 kB / 1.371 GB, free: 5.871 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.673e-05/0.3805, allocations: 180.2 kB / 1.371 GB, free: 5.688 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.3807, allocations: 360.9 kB / 1.372 GB, free: 5.297 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.806e-05/0.3808, allocations: 116.9 kB / 1.372 GB, free: 5.176 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.631e-05/0.3808, allocations: 105 kB / 1.372 GB, free: 5.066 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.485e-05/0.3809, allocations: 176.3 kB / 1.372 GB, free: 4.887 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.511e-05/0.381, allocations: 192.1 kB / 1.372 GB, free: 4.691 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.79e-05/0.3811, allocations: 176.3 kB / 1.372 GB, free: 4.512 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001038/0.3812, allocations: 184.3 kB / 1.373 GB, free: 4.324 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000207/0.3814, allocations: 311.8 kB / 1.373 GB, free: 3.996 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 5.893e-05/0.3814, allocations: 112.9 kB / 1.373 GB, free: 3.879 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001979/0.3816, allocations: 184.1 kB / 1.373 GB, free: 3.691 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.577e-05/0.3817, allocations: 108.9 kB / 1.373 GB, free: 3.578 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.3819, allocations: 180.3 kB / 1.373 GB, free: 3.395 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.514e-05/0.382, allocations: 105 kB / 1.373 GB, free: 3.285 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.379e-05/0.3821, allocations: 113.7 kB / 1.374 GB, free: 3.176 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3821, allocations: 0 / 1.374 GB, free: 3.176 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003928/0.3825, allocations: 75.73 kB / 1.374 GB, free: 3.102 MB / 1.061 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 (0): * Single equations (assignments): 0 * 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.001061/0.3835, allocations: 409.5 kB / 1.374 GB, free: 2.77 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003288/0.3838, allocations: 189 kB / 1.374 GB, free: 2.566 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3838, allocations: 0 / 1.374 GB, free: 2.566 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.894e-06/0.3838, allocations: 0 / 1.374 GB, free: 2.566 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.3843, allocations: 459.7 kB / 1.375 GB, free: 2.113 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003414/0.3846, allocations: 216.2 kB / 1.375 GB, free: 1.875 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.571e-05/0.3847, allocations: 63.34 kB / 1.375 GB, free: 1.793 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.677e-05/0.3848, allocations: 59.86 kB / 1.375 GB, free: 1.734 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.575e-05/0.3848, allocations: 7.438 kB / 1.375 GB, free: 1.727 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.3848, allocations: 0 / 1.375 GB, free: 1.727 MB / 1.061 GB Notification: Performance of Templates: time 0.00629/0.3911, allocations: 2.767 MB / 1.378 GB, free: 14.99 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & ./Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.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: 9.040139367803931]