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.415/1.415, allocations: 249.3 MB / 261.8 MB, free: 5.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001084/0.001085, allocations: 180.6 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.2 MB / 0.572 GB, free: 10.65 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.0008283/0.0008283, allocations: 94.52 kB / 0.6764 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.009e-05/3.013e-05, allocations: 0 / 0.7879 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.1705, allocations: 106.3 MB / 0.8918 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5754/0.746, allocations: 155.1 MB / 1.043 GB, free: 13.25 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/0.7463, allocations: 90.69 kB / 1.043 GB, free: 13.2 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.04268/0.789, allocations: 17.65 MB / 1.061 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.423e-06/0.7891, allocations: 4 kB / 1.061 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.901e-05/0.7891, allocations: 4 kB / 1.061 GB, free: 14.35 MB / 0.6823 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.001054/0.7902, allocations: 0.6141 MB / 1.061 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.7902, allocations: 8.031 kB / 1.061 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007612/0.791, allocations: 95.56 kB / 1.061 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.7914, allocations: 284.9 kB / 1.062 GB, free: 13.31 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.7914, allocations: 15.73 kB / 1.062 GB, free: 13.3 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.272e-05/0.7915, allocations: 17.88 kB / 1.062 GB, free: 13.29 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005386/0.792, allocations: 369.2 kB / 1.062 GB, free: 12.99 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.792, allocations: 7.922 kB / 1.062 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.054e-05/0.7921, allocations: 7.438 kB / 1.062 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.971e-05/0.7921, allocations: 27.86 kB / 1.062 GB, free: 12.95 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004684/0.7926, allocations: 311.6 kB / 1.062 GB, free: 12.75 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.7944, allocations: 1.665 MB / 1.064 GB, free: 11.16 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007417/0.7952, allocations: 394.3 kB / 1.064 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002176/0.7954, allocations: 161.4 kB / 1.064 GB, free: 10.75 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001523/0.7956, allocations: 85.11 kB / 1.064 GB, free: 10.65 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003267/0.7959, allocations: 228.2 kB / 1.065 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=27): time 1.744e-06/0.7959, allocations: 4 kB / 1.065 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28): time 0.0008682/0.7968, allocations: 435.5 kB / 1.065 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.7968, allocations: 85.05 kB / 1.065 GB, free: 10 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.797, allocations: 203.5 kB / 1.065 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.126e-05/0.7971, allocations: 29.45 kB / 1.065 GB, free: 9.801 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.396e-05/0.7972, allocations: 167 kB / 1.066 GB, free: 9.66 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.816e-05/0.7972, allocations: 91.92 kB / 1.066 GB, free: 9.582 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-05/0.7973, allocations: 3.438 kB / 1.066 GB, free: 9.582 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.7974, allocations: 336.4 kB / 1.066 GB, free: 9.254 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.7976, allocations: 137.1 kB / 1.066 GB, free: 9.168 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.7979, allocations: 204.9 kB / 1.066 GB, free: 8.988 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.7981, allocations: 186.1 kB / 1.066 GB, free: 8.852 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.7981, allocations: 3.953 kB / 1.066 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007012/0.7988, allocations: 473.6 kB / 1.067 GB, free: 8.48 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003206/0.7992, allocations: 0.9077 MB / 1.068 GB, free: 7.516 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.7992, allocations: 0 / 1.068 GB, free: 7.516 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002109/0.7994, allocations: 43.64 kB / 1.068 GB, free: 7.477 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003937/0.7998, allocations: 87.86 kB / 1.068 GB, free: 7.391 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/0.8013, allocations: 1.495 MB / 1.069 GB, free: 5.855 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.8017, allocations: 58.72 kB / 1.069 GB, free: 5.805 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.912e-05/0.8017, allocations: 15.98 kB / 1.069 GB, free: 5.789 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.8017, allocations: 4 kB / 1.069 GB, free: 5.785 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007581/0.8025, allocations: 421.8 kB / 1.07 GB, free: 5.473 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.8025, allocations: 0 / 1.07 GB, free: 5.473 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001452/0.8027, allocations: 35.95 kB / 1.07 GB, free: 5.438 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003522/0.803, allocations: 91.05 kB / 1.07 GB, free: 5.352 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/0.8042, allocations: 1.478 MB / 1.071 GB, free: 3.832 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003167/0.8045, allocations: 51.05 kB / 1.072 GB, free: 3.785 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.941e-05/0.8046, allocations: 11.31 kB / 1.072 GB, free: 3.777 MB / 0.6823 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.0001783/0.8048, allocations: 126.3 kB / 1.072 GB, free: 3.656 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.908e-05/0.8048, allocations: 27.67 kB / 1.072 GB, free: 3.629 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007924/0.8056, allocations: 407.2 kB / 1.072 GB, free: 3.324 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.8057, allocations: 11.88 kB / 1.072 GB, free: 3.312 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-06/0.8057, allocations: 0 / 1.072 GB, free: 3.312 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.8057, allocations: 0 / 1.072 GB, free: 3.312 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007565/0.8065, allocations: 0.5653 MB / 1.073 GB, free: 2.773 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.8065, allocations: 0 / 1.073 GB, free: 2.773 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003843/0.8069, allocations: 87.88 kB / 1.073 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001244/0.807, allocations: 46.7 kB / 1.073 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.807, allocations: 2.688 kB / 1.073 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001059/0.8081, allocations: 1.409 MB / 1.074 GB, free: 1.191 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.8081, allocations: 3.953 kB / 1.074 GB, free: 1.188 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006392/0.8088, allocations: 0.4959 MB / 1.075 GB, free: 0.7344 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.8089, allocations: 138.8 kB / 1.075 GB, free: 0.5938 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.809, allocations: 6.875 kB / 1.075 GB, free: 0.5898 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003088/0.8093, allocations: 42.95 kB / 1.075 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.936e-05/0.8094, allocations: 29.83 kB / 1.075 GB, free: 0.5273 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.8094, allocations: 11.12 kB / 1.075 GB, free: 0.5195 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001429/0.8096, allocations: 170.1 kB / 1.075 GB, free: 388 kB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8096, allocations: 0 / 1.075 GB, free: 388 kB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005739/0.8102, allocations: 149.8 kB / 1.075 GB, free: 256 kB / 0.6823 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.0001835/0.8104, allocations: 130.3 kB / 1.075 GB, free: 116 kB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0012/0.8116, allocations: 0.8637 MB / 1.076 GB, free: 15.36 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.8116, allocations: 0 / 1.076 GB, free: 15.36 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003994/0.812, allocations: 296 kB / 1.076 GB, free: 15.11 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.8123, allocations: 38.78 kB / 1.076 GB, free: 15.09 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000882/0.8132, allocations: 475.1 kB / 1.077 GB, free: 14.66 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.8136, allocations: 0.7871 MB / 1.078 GB, free: 13.86 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003235/0.8139, allocations: 114.1 kB / 1.078 GB, free: 13.75 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.476e-05/0.814, allocations: 27.06 kB / 1.078 GB, free: 13.72 MB / 0.698 GB Notification: Performance of SimCode: time 3.5e-07/0.814, allocations: 0 / 1.078 GB, free: 13.72 MB / 0.698 GB Notification: Performance of Templates: time 0.007518/0.8215, allocations: 4.316 MB / 1.082 GB, free: 9.438 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