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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001578/0.001578, allocations: 117.2 kB / 16.37 MB, free: 6.004 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.001732/0.001732, allocations: 193.2 kB / 17.31 MB, free: 5.613 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.468/1.468, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.232/2.232, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 64.03 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.279, allocations: 140.4 MB / 0.9511 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.00186/0.2809, allocations: 0.5442 MB / 0.9517 GB, free: 7.527 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001575/0.2825, allocations: 1.197 MB / 0.9528 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.398e-05/0.2825, allocations: 4 kB / 0.9528 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.782e-05/0.2826, allocations: 7.984 kB / 0.9528 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.61e-05/0.2827, allocations: 3.938 kB / 0.9528 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006217/0.2833, allocations: 279.3 kB / 0.9531 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001593/0.2835, allocations: 75.86 kB / 0.9532 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.936e-05/0.2835, allocations: 4 kB / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.618e-05/0.2836, allocations: 39.86 kB / 0.9532 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.073e-05/0.2837, allocations: 47.89 kB / 0.9533 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.2837, allocations: 4 kB / 0.9533 GB, free: 5.867 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003637/0.2841, allocations: 211.6 kB / 0.9535 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.546e-05/0.2841, allocations: 4 kB / 0.9535 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.783e-05/0.2842, allocations: 35.84 kB / 0.9535 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003326/0.2845, allocations: 251.5 kB / 0.9538 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2845, allocations: 0 / 0.9538 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.953e-06/0.2845, allocations: 0 / 0.9538 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.2846, allocations: 0 / 0.9538 GB, free: 5.375 MB / 0.7325 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.000439/0.285, allocations: 445 kB / 0.9542 GB, free: 4.887 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.285, allocations: 12.03 kB / 0.9542 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.468e-05/0.2851, allocations: 92.12 kB / 0.9543 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.2853, allocations: 251.6 kB / 0.9545 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.734e-05/0.2854, allocations: 154.9 kB / 0.9547 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.632e-05/0.2854, allocations: 158.9 kB / 0.9548 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.06e-05/0.2855, allocations: 105.1 kB / 0.9549 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.2855, allocations: 83.22 kB / 0.955 GB, free: 4 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.2856, allocations: 150.6 kB / 0.9551 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.222e-05/0.2856, allocations: 150.6 kB / 0.9553 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.783e-05/0.2857, allocations: 150.6 kB / 0.9554 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002907/0.286, allocations: 473.8 kB / 0.9559 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.507e-05/0.2861, allocations: 169.1 kB / 0.956 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.103e-05/0.2861, allocations: 88.08 kB / 0.9561 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.08e-05/0.2861, allocations: 79.28 kB / 0.9562 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/0.2862, allocations: 113.7 kB / 0.9563 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=0): time 1.012e-06/0.2862, allocations: 0 / 0.9563 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of matching and sorting (n=0): time 9.679e-05/0.2863, allocations: 37.7 kB / 0.9563 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.2864, allocations: 130.7 kB / 0.9565 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.2865, allocations: 141.7 kB / 0.9566 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.2865, allocations: 29.7 kB / 0.9566 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.276e-05/0.2866, allocations: 96.06 kB / 0.9567 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.094e-06/0.2866, allocations: 0 / 0.9567 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/0.2867, allocations: 41.69 kB / 0.9568 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.751e-05/0.2868, allocations: 326.8 kB / 0.9571 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.2869, allocations: 59.89 kB / 0.9571 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.412e-05/0.287, allocations: 63.94 kB / 0.9572 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.2871, allocations: 94.52 kB / 0.9573 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2871, allocations: 0 / 0.9573 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003938/0.2875, allocations: 231.1 kB / 0.9575 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.361e-05/0.2876, allocations: 45.69 kB / 0.9576 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2876, allocations: 0 / 0.9576 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.2876, allocations: 0 / 0.9576 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.2876, allocations: 0 / 0.9576 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.2876, allocations: 4.062 kB / 0.9576 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003011/0.2879, allocations: 27.88 kB / 0.9576 GB, free: 1.195 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.288, allocations: 15.98 kB / 0.9576 GB, free: 1.18 MB / 0.7325 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.0001117/0.2881, allocations: 199 kB / 0.9578 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.648e-05/0.2882, allocations: 116.8 kB / 0.9579 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.583e-05/0.2882, allocations: 104.6 kB / 0.958 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.147e-05/0.2883, allocations: 188.2 kB / 0.9582 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.962e-05/0.2884, allocations: 180.3 kB / 0.9584 GB, free: 376 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-05/0.2884, allocations: 188.1 kB / 0.9585 GB, free: 180 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.2886, allocations: 421.2 kB / 0.9589 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.384e-05/0.2887, allocations: 101 kB / 0.959 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.221e-05/0.2887, allocations: 108.9 kB / 0.9591 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.177e-05/0.2888, allocations: 184.2 kB / 0.9593 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.299e-05/0.2888, allocations: 184.2 kB / 0.9595 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.966e-05/0.2889, allocations: 180.2 kB / 0.9597 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.636e-05/0.289, allocations: 180.3 kB / 0.9598 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001273/0.2891, allocations: 311.7 kB / 0.9601 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/0.2892, allocations: 186 kB / 0.9603 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.663e-05/0.2892, allocations: 184.2 kB / 0.9605 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.371e-05/0.2893, allocations: 105 kB / 0.9606 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.06e-05/0.2894, allocations: 180.2 kB / 0.9607 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.2894, allocations: 101 kB / 0.9608 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 7.005e-05/0.2895, allocations: 114.2 kB / 0.961 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.41e-07/0.2895, allocations: 0 / 0.961 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003685/0.2899, allocations: 67.98 kB / 0.961 GB, free: 13.45 MB / 0.7481 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.0007357/0.2906, allocations: 401.1 kB / 0.9614 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002623/0.2909, allocations: 219.2 kB / 0.9616 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2909, allocations: 0 / 0.9616 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.094e-06/0.2909, allocations: 0 / 0.9616 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.2912, allocations: 463.7 kB / 0.9621 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003106/0.2916, allocations: 228.4 kB / 0.9623 GB, free: 12.19 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.2918, allocations: 0.6883 MB / 0.9629 GB, free: 11.47 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.401e-05/0.2919, allocations: 47.81 kB / 0.963 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.395e-05/0.2919, allocations: 11.44 kB / 0.963 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of SimCode: time 2.5e-07/0.2919, allocations: 0 / 0.963 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of Templates: time 0.005762/0.2977, allocations: 2.599 MB / 0.9655 GB, free: 8.832 MB / 0.7481 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 -s gbode -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/jenkins1/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