Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.412/1.412, allocations: 251.9 MB / 266.9 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001129/0.001129, allocations: 184.3 kB / 326.5 MB, free: 2.277 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.984/1.984, allocations: 205.4 MB / 0.5775 GB, free: 20.32 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008316/0.0008317, allocations: 104.7 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004972/0.0004974, allocations: 9.375 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2675, allocations: 106.3 MB / 0.9001 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2044/0.4719, allocations: 155.1 MB / 1.052 GB, free: 4.633 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003381/0.4723, allocations: 99.94 kB / 1.052 GB, free: 4.535 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.6099/1.082, allocations: 17.75 MB / 1.069 GB, free: 151.5 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.406e-06/1.082, allocations: 4 kB / 1.069 GB, free: 151.5 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.294e-05/1.082, allocations: 5.344 kB / 1.069 GB, free: 151.5 MB / 0.698 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.001753/1.084, allocations: 0.6381 MB / 1.07 GB, free: 151 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.284e-05/1.084, allocations: 9.469 kB / 1.07 GB, free: 151 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001085/1.085, allocations: 98.22 kB / 1.07 GB, free: 151 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005427/1.086, allocations: 277.6 kB / 1.07 GB, free: 150.8 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.149e-05/1.086, allocations: 17.73 kB / 1.07 GB, free: 150.8 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.111e-05/1.086, allocations: 20.92 kB / 1.07 GB, free: 150.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/1.087, allocations: 425.5 kB / 1.07 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.273e-05/1.087, allocations: 0.9375 kB / 1.07 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.38e-05/1.087, allocations: 17.67 kB / 1.07 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.416e-05/1.087, allocations: 24.23 kB / 1.071 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001137/1.088, allocations: 414.1 kB / 1.071 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002352/1.091, allocations: 1.659 MB / 1.073 GB, free: 149.5 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/1.092, allocations: 477.3 kB / 1.073 GB, free: 149.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001795/1.092, allocations: 98.58 kB / 1.073 GB, free: 149.4 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000629/1.093, allocations: 279.2 kB / 1.073 GB, free: 149.3 MB / 0.698 GB Notification: Performance of pre-optimization done (n=27): time 3.757e-06/1.093, allocations: 0 / 1.073 GB, free: 149.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=28): time 0.002073/1.095, allocations: 0.7754 MB / 1.074 GB, free: 149.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/1.095, allocations: 81.55 kB / 1.074 GB, free: 149 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/1.095, allocations: 199.7 kB / 1.074 GB, free: 148.9 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/1.095, allocations: 30.95 kB / 1.074 GB, free: 148.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/1.095, allocations: 171.5 kB / 1.075 GB, free: 148.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.174e-05/1.096, allocations: 95.55 kB / 1.075 GB, free: 148.7 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.179e-05/1.096, allocations: 6.531 kB / 1.075 GB, free: 148.7 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001007/1.096, allocations: 335.4 kB / 1.075 GB, free: 148.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004628/1.096, allocations: 179.4 kB / 1.075 GB, free: 148.4 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004369/1.097, allocations: 257 kB / 1.075 GB, free: 148.3 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004825/1.097, allocations: 235.8 kB / 1.076 GB, free: 148.3 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/1.097, allocations: 1.469 kB / 1.076 GB, free: 148.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001329/1.098, allocations: 0.57 MB / 1.076 GB, free: 148.1 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003027/1.099, allocations: 0.9031 MB / 1.077 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/1.099, allocations: 2.469 kB / 1.077 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000277/1.099, allocations: 41.44 kB / 1.077 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004669/1.1, allocations: 95.08 kB / 1.077 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/1.101, allocations: 1.507 MB / 1.079 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004584/1.102, allocations: 56.31 kB / 1.079 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.434e-05/1.102, allocations: 11.09 kB / 1.079 GB, free: 145.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/1.102, allocations: 3.844 kB / 1.079 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001206/1.103, allocations: 0.5005 MB / 1.079 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/1.103, allocations: 6.406 kB / 1.079 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001387/1.103, allocations: 40.77 kB / 1.079 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003885/1.103, allocations: 92.78 kB / 1.079 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/1.105, allocations: 1.498 MB / 1.081 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003927/1.105, allocations: 48.97 kB / 1.081 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-05/1.105, allocations: 17.89 kB / 1.081 GB, free: 144.4 MB / 0.698 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.0002829/1.105, allocations: 236.5 kB / 1.081 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.922e-05/1.105, allocations: 29.02 kB / 1.081 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001257/1.107, allocations: 490 kB / 1.082 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/1.107, allocations: 4.562 kB / 1.082 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/1.107, allocations: 5.312 kB / 1.082 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/1.107, allocations: 3.891 kB / 1.082 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008908/1.108, allocations: 0.5682 MB / 1.082 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/1.108, allocations: 0.9688 kB / 1.082 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004275/1.108, allocations: 81.02 kB / 1.082 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000151/1.108, allocations: 37.58 kB / 1.082 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.708e-05/1.108, allocations: 3.625 kB / 1.082 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/1.109, allocations: 1.429 MB / 1.084 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.109, allocations: 9.078 kB / 1.084 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/1.11, allocations: 0.5934 MB / 1.084 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000201/1.111, allocations: 137.1 kB / 1.084 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.537e-05/1.111, allocations: 11.06 kB / 1.084 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000348/1.111, allocations: 42.86 kB / 1.084 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/1.111, allocations: 35.61 kB / 1.084 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/1.111, allocations: 6.844 kB / 1.084 GB, free: 142 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002/1.111, allocations: 175 kB / 1.085 GB, free: 141.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 2e-07/1.111, allocations: 0 / 1.085 GB, free: 141.9 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008331/1.112, allocations: 143.9 kB / 1.085 GB, free: 141.9 MB / 0.698 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.0002552/1.113, allocations: 138 kB / 1.085 GB, free: 141.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002093/1.115, allocations: 1.009 MB / 1.086 GB, free: 141.3 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.115, allocations: 0 / 1.086 GB, free: 141.3 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000659/1.115, allocations: 344.2 kB / 1.086 GB, free: 141.1 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003966/1.116, allocations: 46.53 kB / 1.086 GB, free: 141.1 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/1.117, allocations: 0.7435 MB / 1.087 GB, free: 140.6 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/1.118, allocations: 0.7937 MB / 1.088 GB, free: 139.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003896/1.118, allocations: 91.2 kB / 1.088 GB, free: 139.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/1.118, allocations: 25.94 kB / 1.088 GB, free: 139.8 MB / 0.698 GB Notification: Performance of SimCode: time 7.12e-07/1.118, allocations: 1.469 kB / 1.088 GB, free: 139.8 MB / 0.698 GB Notification: Performance of Templates: time 0.01049/1.129, allocations: 4.042 MB / 1.092 GB, free: 137.9 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches