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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.418/2.418, allocations: 393.5 MB / 408.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 183.5 kB / 0.4902 GB, free: 2.227 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.74/1.74, allocations: 223.1 MB / 0.7992 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 92.36 kB / 0.9396 GB, free: 1.887 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.00043/0.0004298, allocations: 14.59 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3198, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2017/0.5215, allocations: 152.5 MB / 1.378 GB, free: 1.004 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/0.5219, allocations: 91.92 kB / 1.378 GB, free: 0.9141 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02777/0.5496, allocations: 10.38 MB / 1.388 GB, free: 6.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.153e-06/0.5497, allocations: 4 kB / 1.388 GB, free: 6.496 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.977e-06/0.5497, allocations: 0 / 1.388 GB, free: 6.496 MB / 0.8855 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.0004527/0.5502, allocations: 428.9 kB / 1.389 GB, free: 6.023 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/0.5502, allocations: 8.562 kB / 1.389 GB, free: 6.016 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.01e-05/0.5503, allocations: 83.23 kB / 1.389 GB, free: 5.934 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.5504, allocations: 258.2 kB / 1.389 GB, free: 5.641 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.009e-05/0.5505, allocations: 154.6 kB / 1.389 GB, free: 5.488 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.788e-05/0.5506, allocations: 158.6 kB / 1.389 GB, free: 5.332 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.322e-05/0.5506, allocations: 120.9 kB / 1.39 GB, free: 5.207 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.939e-05/0.5507, allocations: 75.28 kB / 1.39 GB, free: 5.133 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.801e-05/0.5507, allocations: 150.6 kB / 1.39 GB, free: 4.984 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.268e-05/0.5508, allocations: 154.5 kB / 1.39 GB, free: 4.832 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.041e-05/0.5508, allocations: 154.6 kB / 1.39 GB, free: 4.68 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003003/0.5511, allocations: 473.9 kB / 1.39 GB, free: 4.168 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 7.31e-05/0.5512, allocations: 165.1 kB / 1.391 GB, free: 3.996 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/0.5513, allocations: 75.28 kB / 1.391 GB, free: 3.922 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/0.5513, allocations: 117.8 kB / 1.391 GB, free: 3.797 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=0): time 7.81e-07/0.5513, allocations: 0 / 1.391 GB, free: 3.797 MB / 0.8855 GB Notification: Performance of matching and sorting (n=0): time 6.507e-05/0.5514, allocations: 29.7 kB / 1.391 GB, free: 3.762 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.5514, allocations: 130.7 kB / 1.391 GB, free: 3.621 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.5516, allocations: 135.8 kB / 1.391 GB, free: 3.484 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.5516, allocations: 29.7 kB / 1.391 GB, free: 3.449 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.793e-05/0.5517, allocations: 96.03 kB / 1.391 GB, free: 3.352 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.263e-06/0.5517, allocations: 0 / 1.391 GB, free: 3.352 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.208e-05/0.5517, allocations: 8 kB / 1.391 GB, free: 3.344 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.5518, allocations: 318.8 kB / 1.392 GB, free: 3.023 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.5519, allocations: 63.94 kB / 1.392 GB, free: 2.961 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.684e-05/0.552, allocations: 55.95 kB / 1.392 GB, free: 2.906 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/0.5521, allocations: 89.66 kB / 1.392 GB, free: 2.812 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.5521, allocations: 3.938 kB / 1.392 GB, free: 2.809 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003403/0.5525, allocations: 207.3 kB / 1.392 GB, free: 2.594 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.528e-05/0.5525, allocations: 45.69 kB / 1.392 GB, free: 2.543 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-06/0.5525, allocations: 0 / 1.392 GB, free: 2.543 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.195e-06/0.5526, allocations: 4.062 kB / 1.392 GB, free: 2.539 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.487e-06/0.5526, allocations: 0 / 1.392 GB, free: 2.539 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.905e-06/0.5526, allocations: 3.938 kB / 1.392 GB, free: 2.535 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000207/0.5528, allocations: 23.83 kB / 1.392 GB, free: 2.512 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.373e-05/0.5528, allocations: 15.98 kB / 1.392 GB, free: 2.496 MB / 0.8855 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 (yI1[1],yI2[1],yI2[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001319/0.553, allocations: 201.1 kB / 1.392 GB, free: 2.289 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.647e-05/0.5531, allocations: 112.8 kB / 1.392 GB, free: 2.172 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.957e-05/0.5531, allocations: 108.5 kB / 1.392 GB, free: 2.062 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.488e-05/0.5532, allocations: 184.2 kB / 1.393 GB, free: 1.875 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.751e-05/0.5533, allocations: 184.2 kB / 1.393 GB, free: 1.688 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.593e-05/0.5534, allocations: 176.3 kB / 1.393 GB, free: 1.508 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002361/0.5536, allocations: 421.2 kB / 1.393 GB, free: 1.039 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.993e-05/0.5537, allocations: 101 kB / 1.393 GB, free: 0.9336 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.128e-05/0.5537, allocations: 113 kB / 1.394 GB, free: 0.8164 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.752e-05/0.5538, allocations: 188.2 kB / 1.394 GB, free: 0.625 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.635e-05/0.5538, allocations: 176.3 kB / 1.394 GB, free: 456 kB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.451e-05/0.5539, allocations: 180.2 kB / 1.394 GB, free: 268 kB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.519e-05/0.554, allocations: 180.2 kB / 1.394 GB, free: 80 kB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000158/0.5542, allocations: 323.6 kB / 1.395 GB, free: 15.74 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 8.293e-05/0.5542, allocations: 186.1 kB / 1.395 GB, free: 15.53 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.958e-05/0.5543, allocations: 184.2 kB / 1.395 GB, free: 15.34 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.928e-05/0.5544, allocations: 101.3 kB / 1.395 GB, free: 15.24 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.71e-05/0.5545, allocations: 180.3 kB / 1.395 GB, free: 15.05 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.915e-05/0.5545, allocations: 108.9 kB / 1.395 GB, free: 14.94 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 6.958e-05/0.5546, allocations: 103.3 kB / 1.395 GB, free: 14.84 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5546, allocations: 0 / 1.395 GB, free: 14.84 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004408/0.5551, allocations: 91.81 kB / 1.395 GB, free: 14.75 MB / 0.9011 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 (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.00069/0.5558, allocations: 419.3 kB / 1.396 GB, free: 14.4 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0002549/0.556, allocations: 219.3 kB / 1.396 GB, free: 14.18 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.556, allocations: 0 / 1.396 GB, free: 14.18 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 3.557e-06/0.5561, allocations: 3.938 kB / 1.396 GB, free: 14.17 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.5563, allocations: 0.5225 MB / 1.397 GB, free: 13.64 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000241/0.5566, allocations: 230.1 kB / 1.397 GB, free: 13.39 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.5568, allocations: 0.6848 MB / 1.397 GB, free: 12.68 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 7.414e-05/0.5569, allocations: 51.86 kB / 1.398 GB, free: 12.63 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.093e-05/0.5569, allocations: 11.44 kB / 1.398 GB, free: 12.62 MB / 0.9011 GB Notification: Performance of SimCode: time 2.4e-07/0.557, allocations: 0 / 1.398 GB, free: 12.62 MB / 0.9011 GB Notification: Performance of Templates: time 0.004671/0.5616, allocations: 2.535 MB / 1.4 GB, free: 10.1 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1) 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","../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches