Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.415/2.415, allocations: 393.5 MB / 408.4 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 195.7 kB / 0.4902 GB, free: 2.223 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 223.2 MB / 0.7992 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009517/0.0009518, allocations: 105 kB / 0.9396 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005335/0.0005339, allocations: 10.41 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3098, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2112/0.521, allocations: 173.7 MB / 1.399 GB, free: 11.76 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/0.5214, allocations: 99.94 kB / 1.399 GB, free: 11.66 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.04815/0.5695, allocations: 19.38 MB / 1.418 GB, free: 8.09 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.084e-06/0.5696, allocations: 0 / 1.418 GB, free: 8.09 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 1.884e-05/0.5696, allocations: 8 kB / 1.418 GB, free: 8.082 MB / 0.9167 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.001162/0.5708, allocations: 0.6372 MB / 1.419 GB, free: 7.391 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.5708, allocations: 12.56 kB / 1.419 GB, free: 7.379 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008116/0.5716, allocations: 107.4 kB / 1.419 GB, free: 7.273 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/0.572, allocations: 266.6 kB / 1.419 GB, free: 6.973 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.5721, allocations: 16.42 kB / 1.419 GB, free: 6.957 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.179e-05/0.5721, allocations: 24 kB / 1.419 GB, free: 6.934 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007771/0.5729, allocations: 426.5 kB / 1.419 GB, free: 6.48 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.573, allocations: 3.906 kB / 1.419 GB, free: 6.477 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.573, allocations: 8 kB / 1.419 GB, free: 6.469 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.199e-05/0.573, allocations: 24.36 kB / 1.419 GB, free: 6.441 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008948/0.5739, allocations: 412.7 kB / 1.42 GB, free: 6.039 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.576, allocations: 1.654 MB / 1.421 GB, free: 4.258 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.5772, allocations: 484.2 kB / 1.422 GB, free: 3.766 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001579/0.5773, allocations: 97.03 kB / 1.422 GB, free: 3.652 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005347/0.5779, allocations: 282.9 kB / 1.422 GB, free: 3.359 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=27): time 2.154e-06/0.5779, allocations: 4 kB / 1.422 GB, free: 3.355 MB / 0.9167 GB Notification: Performance of matching and sorting (n=28): time 0.001829/0.5797, allocations: 0.7679 MB / 1.423 GB, free: 2.559 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.5798, allocations: 81.3 kB / 1.423 GB, free: 2.461 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.58, allocations: 204.1 kB / 1.423 GB, free: 2.254 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 3.405e-05/0.58, allocations: 29.7 kB / 1.423 GB, free: 2.219 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.5801, allocations: 172.3 kB / 1.423 GB, free: 2.047 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 8.365e-05/0.5802, allocations: 98.58 kB / 1.424 GB, free: 1.949 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.011e-05/0.5803, allocations: 7.938 kB / 1.424 GB, free: 1.941 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.5804, allocations: 338.8 kB / 1.424 GB, free: 1.602 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004113/0.5808, allocations: 180.2 kB / 1.424 GB, free: 1.426 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000445/0.5813, allocations: 264.8 kB / 1.424 GB, free: 1.137 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004587/0.5817, allocations: 234.3 kB / 1.425 GB, free: 0.9023 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.5818, allocations: 4 kB / 1.425 GB, free: 0.8984 MB / 0.9167 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001151/0.5829, allocations: 0.5557 MB / 1.425 GB, free: 340 kB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.7022/1.285, allocations: 0.8984 MB / 1.426 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.745e-05/1.285, allocations: 3.031 kB / 1.426 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004517/1.286, allocations: 46.7 kB / 1.426 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/1.286, allocations: 91.06 kB / 1.426 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001545/1.288, allocations: 1.504 MB / 1.428 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005212/1.288, allocations: 54.94 kB / 1.428 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.653e-05/1.289, allocations: 15.31 kB / 1.428 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/1.289, allocations: 3.375 kB / 1.428 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001211/1.29, allocations: 0.4985 MB / 1.428 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/1.29, allocations: 4.75 kB / 1.428 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/1.29, allocations: 41.89 kB / 1.428 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000392/1.29, allocations: 94.02 kB / 1.428 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/1.291, allocations: 1.495 MB / 1.43 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004406/1.292, allocations: 47.45 kB / 1.43 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.761e-05/1.292, allocations: 14.19 kB / 1.43 GB, free: 180.1 MB / 0.9167 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 () * Number of clocked 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.0002719/1.292, allocations: 244 kB / 1.43 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.425e-05/1.292, allocations: 25.61 kB / 1.43 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/1.293, allocations: 494.2 kB / 1.43 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/1.293, allocations: 3.219 kB / 1.43 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/1.293, allocations: 3.188 kB / 1.43 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/1.293, allocations: 3.375 kB / 1.43 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006847/1.294, allocations: 0.5672 MB / 1.431 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/1.294, allocations: 11.45 kB / 1.431 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003835/1.295, allocations: 76.19 kB / 1.431 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001216/1.295, allocations: 39.38 kB / 1.431 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/1.295, allocations: 5.203 kB / 1.431 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009556/1.296, allocations: 1.427 MB / 1.433 GB, free: 178.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.296, allocations: 2.25 kB / 1.433 GB, free: 178.2 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/1.297, allocations: 0.5909 MB / 1.433 GB, free: 178 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/1.297, allocations: 136 kB / 1.433 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.184e-05/1.297, allocations: 14.73 kB / 1.433 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003198/1.297, allocations: 38.73 kB / 1.433 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/1.297, allocations: 29.39 kB / 1.433 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-05/1.298, allocations: 12.83 kB / 1.433 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001773/1.298, allocations: 179.2 kB / 1.434 GB, free: 177.8 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.4e-07/1.298, allocations: 1.125 kB / 1.434 GB, free: 177.8 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0006608/1.298, allocations: 142.6 kB / 1.434 GB, free: 177.8 MB / 0.9167 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) * Number of clocked states: 0 () * 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.0002242/1.299, allocations: 132.1 kB / 1.434 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.002169/1.301, allocations: 1.015 MB / 1.435 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/1.301, allocations: 0 / 1.435 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006666/1.301, allocations: 342.6 kB / 1.435 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/1.302, allocations: 40.56 kB / 1.435 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/1.303, allocations: 0.755 MB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/1.304, allocations: 0.7881 MB / 1.437 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003243/1.304, allocations: 97.81 kB / 1.437 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.632e-05/1.304, allocations: 30.19 kB / 1.437 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of SimCode: time 7.31e-07/1.304, allocations: 0 / 1.437 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of Templates: time 0.01002/1.314, allocations: 4.021 MB / 1.441 GB, free: 176 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches