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.00102/0.00102, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00978/0.009781, allocations: 169 kB / 16.26 MB, free: 6.652 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.435/1.435, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.612/2.612, allocations: 390.9 MB / 0.6663 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003073/0.0003073, allocations: 12 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9176/0.9179, allocations: 142.4 MB / 0.955 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.000897/0.9189, allocations: 280.4 kB / 0.9553 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001727/0.9206, allocations: 1.186 MB / 0.9565 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.98e-05/0.9207, allocations: 0.9062 kB / 0.9565 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.533e-05/0.9208, allocations: 0.9688 kB / 0.9565 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.239e-05/0.9208, allocations: 3.938 kB / 0.9565 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007304/0.9216, allocations: 252.4 kB / 0.9567 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.9217, allocations: 73.7 kB / 0.9568 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.656e-05/0.9218, allocations: 3.625 kB / 0.9568 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.34e-05/0.9218, allocations: 41.58 kB / 0.9568 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.44e-05/0.9219, allocations: 33.98 kB / 0.9569 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.9219, allocations: 3.5 kB / 0.9569 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004862/0.9224, allocations: 191.9 kB / 0.957 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.104e-05/0.9225, allocations: 7.594 kB / 0.9571 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.527e-05/0.9225, allocations: 55.55 kB / 0.9571 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004225/0.923, allocations: 262.1 kB / 0.9574 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.923, allocations: 0 / 0.9574 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.084e-06/0.923, allocations: 3.938 kB / 0.9574 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.923, allocations: 0 / 0.9574 GB, free: 6.145 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.0003845/0.9234, allocations: 417.8 kB / 0.9578 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.9234, allocations: 9.375 kB / 0.9578 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.242e-05/0.9235, allocations: 86 kB / 0.9578 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.9236, allocations: 251.8 kB / 0.9581 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.655e-05/0.9237, allocations: 161.6 kB / 0.9582 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.679e-05/0.9237, allocations: 156.1 kB / 0.9584 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.928e-05/0.9238, allocations: 110.4 kB / 0.9585 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.9238, allocations: 79.28 kB / 0.9586 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.469e-05/0.9239, allocations: 154.5 kB / 0.9587 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.219e-05/0.9239, allocations: 151.9 kB / 0.9589 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.454e-05/0.9239, allocations: 154.6 kB / 0.959 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002359/0.9242, allocations: 469.6 kB / 0.9595 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.234e-05/0.9242, allocations: 166.5 kB / 0.9596 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.882e-05/0.9242, allocations: 84.12 kB / 0.9597 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.9243, allocations: 88.59 kB / 0.9598 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.9243, allocations: 109.8 kB / 0.9599 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 9.22e-07/0.9243, allocations: 1.375 kB / 0.9599 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 9.498e-05/0.9244, allocations: 35.11 kB / 0.9599 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.9244, allocations: 128.1 kB / 0.96 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.9246, allocations: 146.4 kB / 0.9602 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.9246, allocations: 32.45 kB / 0.9602 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.752e-05/0.9247, allocations: 88.27 kB / 0.9603 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.216e-06/0.9247, allocations: 5.312 kB / 0.9603 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.9248, allocations: 17.83 kB / 0.9603 GB, free: 3 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.491e-05/0.9248, allocations: 317.6 kB / 0.9606 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.9249, allocations: 61.06 kB / 0.9607 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.76e-05/0.9251, allocations: 61.02 kB / 0.9607 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.9252, allocations: 99.7 kB / 0.9608 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.9252, allocations: 0 / 0.9608 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003823/0.9256, allocations: 235.5 kB / 0.9611 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.708e-05/0.9256, allocations: 45.53 kB / 0.9611 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.9257, allocations: 0.9062 kB / 0.9611 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.9257, allocations: 4 kB / 0.9611 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.934e-06/0.9257, allocations: 4.609 kB / 0.9611 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.9257, allocations: 0.6875 kB / 0.9611 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003411/0.926, allocations: 26.39 kB / 0.9611 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.9261, allocations: 13.83 kB / 0.9612 GB, free: 2.375 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 9.627e-05/0.9262, allocations: 202.6 kB / 0.9613 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.728e-05/0.9262, allocations: 113.1 kB / 0.9615 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.036e-05/0.9263, allocations: 109.7 kB / 0.9616 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/0.9263, allocations: 181.4 kB / 0.9617 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.8e-05/0.9263, allocations: 181.4 kB / 0.9619 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.463e-05/0.9264, allocations: 181.4 kB / 0.9621 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000156/0.9265, allocations: 420.4 kB / 0.9625 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.021e-05/0.9266, allocations: 102.3 kB / 0.9626 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.653e-05/0.9266, allocations: 108.9 kB / 0.9627 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.716e-05/0.9266, allocations: 177.5 kB / 0.9628 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.167e-05/0.9266, allocations: 181.6 kB / 0.963 GB, free: 360 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.65e-05/0.9267, allocations: 193.4 kB / 0.9632 GB, free: 160 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-05/0.9267, allocations: 177.3 kB / 0.9634 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001572/0.9269, allocations: 308.9 kB / 0.9637 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.927, allocations: 199.8 kB / 0.9639 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.581e-05/0.9271, allocations: 181.5 kB / 0.964 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.611e-05/0.9272, allocations: 106.3 kB / 0.9641 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.227e-05/0.9273, allocations: 181.5 kB / 0.9643 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.357e-05/0.9273, allocations: 101 kB / 0.9644 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.239e-05/0.9274, allocations: 109.4 kB / 0.9645 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2e-07/0.9274, allocations: 3.938 kB / 0.9645 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003942/0.9278, allocations: 69.05 kB / 0.9646 GB, free: 14.74 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.0008147/0.9287, allocations: 393.9 kB / 0.965 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003269/0.929, allocations: 222.5 kB / 0.9652 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.929, allocations: 0 / 0.9652 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.815e-06/0.929, allocations: 1.375 kB / 0.9652 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.9294, allocations: 0.5296 MB / 0.9657 GB, free: 13.81 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003539/0.9298, allocations: 249.7 kB / 0.9659 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.9301, allocations: 0.6785 MB / 0.9666 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.725e-05/0.9301, allocations: 51.31 kB / 0.9666 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.439e-05/0.9302, allocations: 8.812 kB / 0.9666 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.9302, allocations: 0 / 0.9666 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of Templates: time 0.006297/0.9365, allocations: 2.565 MB / 0.9691 GB, free: 11.52 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