Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.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: translateModel(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|yR1.1.|yI1.1.|yR2.1.|yR2.2.|yI2.1.|yI2.2.",fileNamePrefix="Buildings_9_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=5000,variableFilter="time|yR1.1.|yI1.1.|yR2.1.|yR2.2.|yI2.1.|yI2.2.",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 108 kB / 15.6 MB, free: 132 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.001216/0.001216, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.238/1.238, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.096/2.096, allocations: 390.2 MB / 0.6647 GB, free: 404 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 59.91 kB / 0.8125 GB, free: 14.43 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6055/0.6067, allocations: 140.4 MB / 0.9496 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.002536/0.6092, allocations: 0.5353 MB / 0.9501 GB, free: 8.742 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00187/0.6111, allocations: 1.202 MB / 0.9513 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.204e-05/0.6112, allocations: 1.375 kB / 0.9513 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.6114, allocations: 5.75 kB / 0.9513 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.52e-05/0.6115, allocations: 0 / 0.9513 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008497/0.6123, allocations: 280.6 kB / 0.9516 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.6125, allocations: 79.64 kB / 0.9516 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.307e-05/0.6125, allocations: 3.219 kB / 0.9516 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.655e-05/0.6126, allocations: 38.91 kB / 0.9517 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.879e-05/0.6127, allocations: 34.5 kB / 0.9517 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.715e-05/0.6127, allocations: 3.562 kB / 0.9517 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004738/0.6132, allocations: 184.3 kB / 0.9519 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.357e-05/0.6132, allocations: 8.875 kB / 0.9519 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.669e-05/0.6133, allocations: 31.81 kB / 0.9519 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004395/0.6137, allocations: 255.5 kB / 0.9522 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.6138, allocations: 1.562 kB / 0.9522 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.655e-06/0.6138, allocations: 0 / 0.9522 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.6138, allocations: 3.938 kB / 0.9522 GB, free: 7.301 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004538/0.6142, allocations: 441.3 kB / 0.9526 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.6143, allocations: 14.12 kB / 0.9526 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.94e-05/0.6144, allocations: 86.31 kB / 0.9527 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.6145, allocations: 250.2 kB / 0.9529 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.574e-05/0.6145, allocations: 157.1 kB / 0.9531 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.501e-05/0.6146, allocations: 164.9 kB / 0.9532 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.947e-05/0.6147, allocations: 106.6 kB / 0.9533 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.6147, allocations: 79.28 kB / 0.9534 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.6147, allocations: 150.6 kB / 0.9536 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.353e-05/0.6147, allocations: 155.7 kB / 0.9537 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.387e-05/0.6148, allocations: 150.6 kB / 0.9539 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000218/0.615, allocations: 469.8 kB / 0.9543 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.878e-05/0.615, allocations: 170.7 kB / 0.9545 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.864e-05/0.6151, allocations: 84.14 kB / 0.9545 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.6151, allocations: 75.28 kB / 0.9546 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.6151, allocations: 111.4 kB / 0.9547 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.6151, allocations: 0 / 0.9547 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 0.0001002/0.6152, allocations: 44.14 kB / 0.9548 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.6153, allocations: 132.2 kB / 0.9549 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.6154, allocations: 144.2 kB / 0.955 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.6154, allocations: 32.33 kB / 0.9551 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.813e-05/0.6155, allocations: 88.61 kB / 0.9551 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-06/0.6155, allocations: 0 / 0.9551 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.198e-05/0.6156, allocations: 47.88 kB / 0.9552 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.432e-05/0.6156, allocations: 312.3 kB / 0.9555 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.6157, allocations: 65.53 kB / 0.9555 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.693e-05/0.6159, allocations: 61.53 kB / 0.9556 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001177/0.616, allocations: 95.56 kB / 0.9557 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.616, allocations: 7.969 kB / 0.9557 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003627/0.6164, allocations: 238.9 kB / 0.9559 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.79e-05/0.6164, allocations: 42.44 kB / 0.956 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.6164, allocations: 0 / 0.956 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.6164, allocations: 1.531 kB / 0.956 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.342e-06/0.6164, allocations: 0 / 0.956 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.6164, allocations: 0 / 0.956 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003127/0.6168, allocations: 25.8 kB / 0.956 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.9e-05/0.6168, allocations: 18.14 kB / 0.956 GB, free: 3.516 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: 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 8.154e-05/0.6169, allocations: 199.4 kB / 0.9562 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.567e-05/0.6169, allocations: 107.3 kB / 0.9563 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.015e-05/0.617, allocations: 122.6 kB / 0.9564 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/0.617, allocations: 177.7 kB / 0.9566 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.326e-05/0.617, allocations: 181.9 kB / 0.9568 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.047e-05/0.6171, allocations: 180.3 kB / 0.9569 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001334/0.6172, allocations: 408.1 kB / 0.9573 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.6172, allocations: 106.7 kB / 0.9574 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.45e-05/0.6172, allocations: 117 kB / 0.9575 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.296e-05/0.6173, allocations: 185.4 kB / 0.9577 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.6173, allocations: 178 kB / 0.9579 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.358e-05/0.6173, allocations: 181.3 kB / 0.9581 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.279e-05/0.6173, allocations: 181.4 kB / 0.9582 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.112e-05/0.6174, allocations: 320.4 kB / 0.9585 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.991e-05/0.6175, allocations: 187.3 kB / 0.9587 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.049e-05/0.6175, allocations: 181.7 kB / 0.9589 GB, free: 408 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.969e-05/0.6175, allocations: 110.2 kB / 0.959 GB, free: 292 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.721e-05/0.6176, allocations: 181.1 kB / 0.9592 GB, free: 104 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.704e-05/0.6176, allocations: 106 kB / 0.9593 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.54e-05/0.6177, allocations: 103.4 kB / 0.9594 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.553e-06/0.6177, allocations: 0 / 0.9594 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003559/0.6181, allocations: 71.95 kB / 0.9594 GB, free: 15.88 MB / 0.7325 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.009684/0.6278, allocations: 408.4 kB / 0.9598 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003314/0.6281, allocations: 213.7 kB / 0.96 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.6281, allocations: 0 / 0.96 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.256e-06/0.6281, allocations: 0 / 0.96 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.6285, allocations: 451.7 kB / 0.9605 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003321/0.6289, allocations: 231.1 kB / 0.9607 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.6291, allocations: 0.682 MB / 0.9614 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.145e-05/0.6292, allocations: 52.08 kB / 0.9614 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.758e-05/0.6292, allocations: 12.75 kB / 0.9614 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.6292, allocations: 0 / 0.9614 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of Templates: time 0.005608/0.6348, allocations: 2.601 MB / 0.964 GB, free: 12.75 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & ./Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches