Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001569/0.001569, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001916/0.001916, allocations: 212.9 kB / 22.99 MB, free: 4.984 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.476/1.476, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.182/3.182, allocations: 0.49 GB / 0.7959 GB, free: 35.5 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002093/0.002093, allocations: 68.12 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3442, allocations: 176.1 MB / 1.327 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.001894/0.3461, allocations: 0.5513 MB / 1.328 GB, free: 452 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001951/0.348, allocations: 1.27 MB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.356e-05/0.3481, allocations: 0 / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 8.536e-05/0.3481, allocations: 7.922 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.095e-05/0.3482, allocations: 0 / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007371/0.3489, allocations: 295.2 kB / 1.329 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001489/0.3491, allocations: 71.88 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.066e-05/0.3491, allocations: 7.984 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 5.192e-05/0.3492, allocations: 39.91 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.988e-05/0.3493, allocations: 43.89 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.615e-05/0.3493, allocations: 4 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004304/0.3497, allocations: 239.5 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.89e-05/0.3497, allocations: 8 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.457e-05/0.3498, allocations: 27.91 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003883/0.3502, allocations: 263.2 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3502, allocations: 0 / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.824e-06/0.3502, allocations: 0 / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.3502, allocations: 0 / 1.33 GB, free: 14.18 MB / 1.029 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.0004581/0.3507, allocations: 367.4 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3507, allocations: 12.03 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.192e-05/0.3508, allocations: 88.17 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/0.351, allocations: 193.8 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.954e-05/0.351, allocations: 154.9 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.983e-05/0.3511, allocations: 162.9 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.769e-05/0.3512, allocations: 109 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.398e-05/0.3512, allocations: 75.28 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.325e-05/0.3513, allocations: 150.6 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.676e-05/0.3514, allocations: 154.6 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.388e-05/0.3514, allocations: 158.5 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003094/0.3518, allocations: 417.5 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.898e-05/0.3519, allocations: 177.1 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.114e-05/0.3519, allocations: 80.14 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.585e-05/0.3519, allocations: 75.28 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.067e-05/0.352, allocations: 105.8 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.352, allocations: 4 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=0): time 0.0001045/0.3521, allocations: 37.64 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.3522, allocations: 130.7 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.3523, allocations: 147.5 kB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.891e-05/0.3524, allocations: 25.7 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.22e-05/0.3524, allocations: 96.09 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.813e-06/0.3524, allocations: 3.938 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.3525, allocations: 45.62 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.3527, allocations: 322.8 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.3528, allocations: 97.64 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.353, allocations: 101.6 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001343/0.3531, allocations: 94.52 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3531, allocations: 0 / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000499/0.3536, allocations: 265 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.722e-05/0.3537, allocations: 45.62 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3537, allocations: 7.938 kB / 1.334 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.3537, allocations: 0 / 1.334 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.3537, allocations: 0 / 1.334 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3537, allocations: 3.938 kB / 1.334 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003143/0.354, allocations: 27.92 kB / 1.334 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.973e-05/0.3541, allocations: 20.05 kB / 1.334 GB, free: 10.08 MB / 1.029 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.0001346/0.3542, allocations: 197.6 kB / 1.334 GB, free: 9.875 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.405e-05/0.3543, allocations: 112.9 kB / 1.334 GB, free: 9.758 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.508e-05/0.3543, allocations: 108.5 kB / 1.334 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-05/0.3544, allocations: 192.2 kB / 1.334 GB, free: 9.438 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-05/0.3545, allocations: 176.3 kB / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.117e-05/0.3546, allocations: 188.2 kB / 1.335 GB, free: 9.066 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002275/0.3548, allocations: 360.9 kB / 1.335 GB, free: 8.676 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.26e-05/0.3548, allocations: 101 kB / 1.335 GB, free: 8.57 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.962e-05/0.3549, allocations: 104.9 kB / 1.335 GB, free: 8.461 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.275e-05/0.355, allocations: 184.3 kB / 1.335 GB, free: 8.273 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.459e-05/0.355, allocations: 188.1 kB / 1.335 GB, free: 8.082 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.084e-05/0.3551, allocations: 180.2 kB / 1.336 GB, free: 7.898 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.993e-05/0.3552, allocations: 180.2 kB / 1.336 GB, free: 7.715 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001749/0.3554, allocations: 307.8 kB / 1.336 GB, free: 7.391 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.779e-05/0.3555, allocations: 112.9 kB / 1.336 GB, free: 7.273 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.352e-05/0.3556, allocations: 180.2 kB / 1.336 GB, free: 7.09 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.073e-05/0.3557, allocations: 101 kB / 1.336 GB, free: 6.984 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.249e-05/0.3557, allocations: 184.2 kB / 1.337 GB, free: 6.797 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.615e-05/0.3558, allocations: 109 kB / 1.337 GB, free: 6.684 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.172e-05/0.3559, allocations: 107.2 kB / 1.337 GB, free: 6.578 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3559, allocations: 4 kB / 1.337 GB, free: 6.574 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003597/0.3562, allocations: 75.69 kB / 1.337 GB, free: 6.5 MB / 1.029 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.0009333/0.3572, allocations: 429 kB / 1.337 GB, free: 6.16 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002927/0.3575, allocations: 185 kB / 1.337 GB, free: 5.961 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3575, allocations: 3.938 kB / 1.337 GB, free: 5.957 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.874e-06/0.3575, allocations: 0 / 1.337 GB, free: 5.957 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003897/0.3579, allocations: 466.2 kB / 1.338 GB, free: 5.5 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000314/0.3582, allocations: 224.1 kB / 1.338 GB, free: 5.254 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.38e-05/0.3582, allocations: 63.34 kB / 1.338 GB, free: 5.172 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.852e-05/0.3583, allocations: 59.86 kB / 1.338 GB, free: 5.113 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.519e-05/0.3583, allocations: 7.438 kB / 1.338 GB, free: 5.105 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3583, allocations: 4 kB / 1.338 GB, free: 5.102 MB / 1.029 GB Notification: Performance of Templates: time 0.005982/0.3643, allocations: 2.777 MB / 1.341 GB, free: 2.359 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & ./Buildings_12_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.856366506995982]