Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.785/1.785, allocations: 289.9 MB / 297.4 MB, free: 6.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001226/0.001226, allocations: 180.9 kB / 366.7 MB, free: 1.645 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.704/1.704, allocations: 205.2 MB / 0.626 GB, free: 7.156 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009185/0.0009182, allocations: 89.34 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.683e-05/1.674e-05, allocations: 0 / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6762/0.6762, allocations: 116.3 MB / 0.9734 GB, free: 76.36 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2187/0.895, allocations: 161.7 MB / 1.131 GB, free: 4.496 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.8953, allocations: 95.92 kB / 1.131 GB, free: 4.402 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.04306/0.9384, allocations: 17.58 MB / 1.148 GB, free: 2.758 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9384, allocations: 4 kB / 1.148 GB, free: 2.754 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.03e-05/0.9385, allocations: 4 kB / 1.148 GB, free: 2.75 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.00113/0.9396, allocations: 0.6132 MB / 1.149 GB, free: 2.082 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.9397, allocations: 8.031 kB / 1.149 GB, free: 2.074 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007637/0.9404, allocations: 99.52 kB / 1.149 GB, free: 1.977 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003886/0.9408, allocations: 286 kB / 1.149 GB, free: 1.656 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.9409, allocations: 4 kB / 1.149 GB, free: 1.652 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.576e-05/0.9409, allocations: 12 kB / 1.149 GB, free: 1.641 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004251/0.9414, allocations: 252.8 kB / 1.15 GB, free: 1.391 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005069/0.9419, allocations: 337.8 kB / 1.15 GB, free: 1.035 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.9419, allocations: 3.938 kB / 1.15 GB, free: 1.031 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.006e-05/0.9419, allocations: 3.969 kB / 1.15 GB, free: 1.031 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.324e-05/0.942, allocations: 24.36 kB / 1.15 GB, free: 1.004 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.9439, allocations: 1.595 MB / 1.152 GB, free: 15.29 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007662/0.9447, allocations: 381.4 kB / 1.152 GB, free: 14.9 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.9449, allocations: 153.7 kB / 1.152 GB, free: 14.74 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001674/0.9451, allocations: 93.09 kB / 1.152 GB, free: 14.63 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000357/0.9455, allocations: 224 kB / 1.152 GB, free: 14.4 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=27): time 3.126e-06/0.9455, allocations: 0 / 1.152 GB, free: 14.4 MB / 0.7605 GB Notification: Performance of matching and sorting (n=28): time 0.001023/0.9465, allocations: 426.8 kB / 1.153 GB, free: 13.97 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.9466, allocations: 85.2 kB / 1.153 GB, free: 13.87 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.9468, allocations: 191 kB / 1.153 GB, free: 13.68 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 4.129e-05/0.9468, allocations: 29.7 kB / 1.153 GB, free: 13.64 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 9.787e-05/0.9469, allocations: 164.2 kB / 1.153 GB, free: 13.48 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 7.432e-05/0.947, allocations: 90.66 kB / 1.153 GB, free: 13.39 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.995e-05/0.947, allocations: 0 / 1.153 GB, free: 13.39 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.9471, allocations: 334.8 kB / 1.154 GB, free: 13.05 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.9473, allocations: 120.3 kB / 1.154 GB, free: 12.94 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.9476, allocations: 197.4 kB / 1.154 GB, free: 12.71 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.9479, allocations: 168.1 kB / 1.154 GB, free: 12.55 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.9479, allocations: 0 / 1.154 GB, free: 12.55 MB / 0.7605 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007254/0.9486, allocations: 423.5 kB / 1.155 GB, free: 12.13 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004237/0.9491, allocations: 0.8995 MB / 1.155 GB, free: 11.16 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.9491, allocations: 11.98 kB / 1.155 GB, free: 11.14 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002384/0.9493, allocations: 39.55 kB / 1.155 GB, free: 11.11 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004125/0.9497, allocations: 95.11 kB / 1.156 GB, free: 11.02 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.9511, allocations: 1.434 MB / 1.157 GB, free: 9.465 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003406/0.9514, allocations: 55.86 kB / 1.157 GB, free: 9.41 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.9515, allocations: 8 kB / 1.157 GB, free: 9.402 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.9515, allocations: 4 kB / 1.157 GB, free: 9.398 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006755/0.9522, allocations: 360.5 kB / 1.157 GB, free: 9.043 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.9522, allocations: 3.938 kB / 1.157 GB, free: 9.039 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001258/0.9523, allocations: 41.11 kB / 1.157 GB, free: 8.996 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003639/0.9527, allocations: 95.81 kB / 1.158 GB, free: 8.902 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/0.9538, allocations: 1.424 MB / 1.159 GB, free: 7.355 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003209/0.9542, allocations: 47.7 kB / 1.159 GB, free: 7.309 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.9542, allocations: 12 kB / 1.159 GB, free: 7.297 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001454/0.9544, allocations: 113 kB / 1.159 GB, free: 7.18 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006636/0.955, allocations: 358 kB / 1.159 GB, free: 6.82 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.135e-05/0.9551, allocations: 23.72 kB / 1.159 GB, free: 6.797 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007093/0.9558, allocations: 396.4 kB / 1.16 GB, free: 6.398 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.9558, allocations: 4 kB / 1.16 GB, free: 6.395 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.9558, allocations: 0 / 1.16 GB, free: 6.395 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.9558, allocations: 5.672 kB / 1.16 GB, free: 6.391 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005847/0.9564, allocations: 0.5043 MB / 1.16 GB, free: 5.836 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.9565, allocations: 0 / 1.16 GB, free: 5.836 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003841/0.9568, allocations: 83.95 kB / 1.16 GB, free: 5.754 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001198/0.957, allocations: 32.83 kB / 1.16 GB, free: 5.719 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.814e-05/0.957, allocations: 11.98 kB / 1.16 GB, free: 5.707 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009737/0.958, allocations: 1.35 MB / 1.162 GB, free: 4.25 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.958, allocations: 0 / 1.162 GB, free: 4.25 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006671/0.9587, allocations: 0.4996 MB / 1.162 GB, free: 3.703 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.9589, allocations: 132.7 kB / 1.162 GB, free: 3.555 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.131e-05/0.9589, allocations: 0 / 1.162 GB, free: 3.555 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003067/0.9592, allocations: 43.94 kB / 1.162 GB, free: 3.512 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.851e-05/0.9593, allocations: 27.95 kB / 1.162 GB, free: 3.484 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-05/0.9594, allocations: 12 kB / 1.162 GB, free: 3.473 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0001351/0.9595, allocations: 156.5 kB / 1.163 GB, free: 3.324 MB / 0.7605 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9595, allocations: 0 / 1.163 GB, free: 3.324 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0006217/0.9601, allocations: 131.9 kB / 1.163 GB, free: 3.195 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001105/0.9613, allocations: 1.27 MB / 1.164 GB, free: 1.875 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001171/0.9624, allocations: 0.8392 MB / 1.165 GB, free: 0.9922 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.9625, allocations: 0 / 1.165 GB, free: 0.9922 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.000384/0.9628, allocations: 278.7 kB / 1.165 GB, free: 0.7109 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.9632, allocations: 38.09 kB / 1.165 GB, free: 0.6758 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.9644, allocations: 0.5184 MB / 1.166 GB, free: 116 kB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000367/0.9647, allocations: 0.7963 MB / 1.166 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0003267/0.9651, allocations: 101.1 kB / 1.166 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.9653, allocations: 87.39 kB / 1.167 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of SimCode: time 4e-07/0.9653, allocations: 0 / 1.167 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.9918, allocations: 6.296 MB / 1.173 GB, free: 8.926 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/0.9921, allocations: 173.1 kB / 1.173 GB, free: 8.734 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.018/3.01, allocations: 0 / 1.173 GB, free: 8.734 MB / 0.7761 GB (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.fmu > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1)