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: "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005943/0.005943, allocations: 99.45 kB / 15.73 MB, free: 6.043 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.001369/0.001369, allocations: 185.6 kB / 16.67 MB, free: 5.977 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.373/2.373, allocations: 390.3 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 57.34 kB / 0.9504 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2489, allocations: 140.4 MB / 1.087 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.001792/0.2507, allocations: 0.536 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00175/0.2525, allocations: 1.192 MB / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.838e-05/0.2525, allocations: 0 / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.2527, allocations: 11.92 kB / 1.089 GB, free: 276 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.411e-05/0.2528, allocations: 4 kB / 1.089 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007395/0.2535, allocations: 271.3 kB / 1.089 GB, free: 0 / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001726/0.2537, allocations: 87.94 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.234e-05/0.2537, allocations: 4 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.575e-05/0.2538, allocations: 35.91 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.959e-05/0.2539, allocations: 43.89 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.2539, allocations: 4 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004057/0.2543, allocations: 203.6 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.936e-05/0.2544, allocations: 7.984 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.488e-05/0.2544, allocations: 35.86 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003843/0.2548, allocations: 255.5 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.2548, allocations: 0 / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.332e-06/0.2549, allocations: 4 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.2549, allocations: 0 / 1.09 GB, free: 15.33 MB / 0.8575 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.0004424/0.2553, allocations: 439.9 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2554, allocations: 12.03 kB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.17e-05/0.2554, allocations: 106 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.289e-05/0.2555, allocations: 84.22 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.2557, allocations: 263.5 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.269e-05/0.2557, allocations: 158.9 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.455e-05/0.2558, allocations: 154.9 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.981e-05/0.2559, allocations: 108.9 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.2559, allocations: 75.28 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.519e-05/0.2559, allocations: 158.6 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.995e-05/0.256, allocations: 154.5 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.407e-05/0.256, allocations: 150.6 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002766/0.2563, allocations: 481.7 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.432e-05/0.2564, allocations: 169.1 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.029e-05/0.2564, allocations: 84.14 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.2565, allocations: 79.22 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/0.2565, allocations: 109.8 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=0): time 9.02e-07/0.2565, allocations: 0 / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0): time 0.0001125/0.2566, allocations: 33.64 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.2567, allocations: 130.7 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.2569, allocations: 150.4 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.2569, allocations: 25.7 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.734e-05/0.257, allocations: 100 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-06/0.257, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.609e-05/0.2571, allocations: 41.69 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.2572, allocations: 322.8 kB / 1.094 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.2573, allocations: 55.95 kB / 1.094 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.981e-05/0.2574, allocations: 67.94 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001284/0.2575, allocations: 94.52 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.2575, allocations: 0 / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003806/0.2579, allocations: 231.1 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.762e-05/0.258, allocations: 49.69 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.258, allocations: 0 / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.258, allocations: 0 / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.258, allocations: 0 / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.258, allocations: 0 / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003474/0.2584, allocations: 27.81 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.2584, allocations: 16.06 kB / 1.094 GB, free: 11.02 MB / 0.8575 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.0001201/0.2586, allocations: 197.1 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.422e-05/0.2586, allocations: 112.8 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.321e-05/0.2587, allocations: 120.5 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.363e-05/0.2588, allocations: 176.3 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.592e-05/0.2588, allocations: 184.2 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.352e-05/0.2589, allocations: 180.3 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002214/0.2591, allocations: 409.2 kB / 1.095 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.684e-05/0.2591, allocations: 116.8 kB / 1.095 GB, free: 9.441 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.15e-05/0.2592, allocations: 101 kB / 1.096 GB, free: 9.336 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.959e-05/0.2593, allocations: 180.2 kB / 1.096 GB, free: 9.152 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.366e-05/0.2593, allocations: 184.3 kB / 1.096 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.555e-05/0.2594, allocations: 180.3 kB / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.389e-05/0.2594, allocations: 188.2 kB / 1.096 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001423/0.2596, allocations: 303.7 kB / 1.097 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.598e-05/0.2597, allocations: 194.1 kB / 1.097 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.433e-05/0.2597, allocations: 184.2 kB / 1.097 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.338e-05/0.2598, allocations: 108.9 kB / 1.097 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.352e-05/0.2599, allocations: 176.3 kB / 1.097 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.2599, allocations: 108.9 kB / 1.097 GB, free: 7.461 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.967e-05/0.26, allocations: 113.2 kB / 1.097 GB, free: 7.352 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.26, allocations: 0 / 1.097 GB, free: 7.352 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003584/0.2603, allocations: 75.92 kB / 1.097 GB, free: 7.277 MB / 0.8575 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.005271/0.2656, allocations: 1.024 MB / 1.098 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003385/0.266, allocations: 223.2 kB / 1.099 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.266, allocations: 0 / 1.099 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.647e-06/0.266, allocations: 0 / 1.099 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004254/0.2664, allocations: 463.8 kB / 1.099 GB, free: 5.613 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.2682, allocations: 1.844 MB / 1.101 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.2685, allocations: 0.6807 MB / 1.102 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001018/0.2686, allocations: 55.86 kB / 1.102 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.882e-05/0.2686, allocations: 7.438 kB / 1.102 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of SimCode: time 4.41e-07/0.2686, allocations: 4.031 kB / 1.102 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02622/0.2949, allocations: 3.749 MB / 1.105 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.704/7.999, allocations: 7.938 kB / 1.105 GB, free: 15.21 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.fmu > Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat does not exist to compare? outputFormat=mat