Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.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.OnePhase.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.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.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.OnePhase.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.336/1.336, allocations: 251.9 MB / 266.9 MB, free: 11.03 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.001164/0.001163, allocations: 175.2 kB / 326.5 MB, free: 2.266 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.914/1.914, allocations: 205.4 MB / 0.5775 GB, free: 20.59 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.000872/0.0008716, allocations: 98.62 kB / 0.6821 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003575, allocations: 8.875 kB / 0.7963 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2504, allocations: 106.3 MB / 0.9001 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1994/0.4499, allocations: 153.7 MB / 1.05 GB, free: 6.543 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/0.4502, allocations: 99.94 kB / 1.05 GB, free: 6.445 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.6226/1.073, allocations: 17.1 MB / 1.067 GB, free: 151.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 4.328e-06/1.073, allocations: 3.656 kB / 1.067 GB, free: 151.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.001e-05/1.073, allocations: 6.891 kB / 1.067 GB, free: 151.2 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.001739/1.075, allocations: 0.6327 MB / 1.068 GB, free: 150.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.124e-05/1.075, allocations: 9.625 kB / 1.068 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/1.076, allocations: 102.8 kB / 1.068 GB, free: 150.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005899/1.076, allocations: 285.1 kB / 1.068 GB, free: 150.5 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.324e-05/1.077, allocations: 14.05 kB / 1.068 GB, free: 150.5 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.499e-05/1.077, allocations: 19.41 kB / 1.068 GB, free: 150.5 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009736/1.078, allocations: 419 kB / 1.068 GB, free: 150.4 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/1.078, allocations: 1.062 kB / 1.068 GB, free: 150.4 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.065e-05/1.078, allocations: 10.81 kB / 1.068 GB, free: 150.4 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.922e-05/1.078, allocations: 26.11 kB / 1.068 GB, free: 150.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/1.079, allocations: 414.5 kB / 1.069 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002396/1.081, allocations: 1.657 MB / 1.07 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/1.083, allocations: 489.2 kB / 1.071 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001768/1.083, allocations: 90.86 kB / 1.071 GB, free: 149.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006267/1.083, allocations: 285.5 kB / 1.071 GB, free: 149 MB / 0.698 GB Notification: Performance of pre-optimization done (n=27): time 2.655e-06/1.083, allocations: 4 kB / 1.071 GB, free: 149 MB / 0.698 GB Notification: Performance of matching and sorting (n=28): time 0.002095/1.086, allocations: 0.7738 MB / 1.072 GB, free: 148.8 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/1.086, allocations: 84.7 kB / 1.072 GB, free: 148.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002343/1.086, allocations: 203.5 kB / 1.072 GB, free: 148.6 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/1.086, allocations: 31.98 kB / 1.072 GB, free: 148.6 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.195e-05/1.086, allocations: 159.8 kB / 1.073 GB, free: 148.4 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.083e-05/1.086, allocations: 96.06 kB / 1.073 GB, free: 148.4 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.019e-05/1.086, allocations: 5.5 kB / 1.073 GB, free: 148.4 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.57e-05/1.086, allocations: 337.2 kB / 1.073 GB, free: 148.1 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004275/1.087, allocations: 178.9 kB / 1.073 GB, free: 148.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004727/1.087, allocations: 262.5 kB / 1.073 GB, free: 148 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004771/1.088, allocations: 229.7 kB / 1.074 GB, free: 147.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/1.088, allocations: 1.406 kB / 1.074 GB, free: 147.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001148/1.089, allocations: 0.5627 MB / 1.074 GB, free: 147.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.000232/1.089, allocations: 0.9061 MB / 1.075 GB, free: 146.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/1.089, allocations: 2.219 kB / 1.075 GB, free: 146.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002503/1.089, allocations: 38.69 kB / 1.075 GB, free: 146.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004374/1.09, allocations: 94.72 kB / 1.075 GB, free: 146.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/1.091, allocations: 1.517 MB / 1.077 GB, free: 145.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003648/1.091, allocations: 48.7 kB / 1.077 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.619e-05/1.091, allocations: 18.05 kB / 1.077 GB, free: 145.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/1.091, allocations: 6.562 kB / 1.077 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001051/1.092, allocations: 0.5037 MB / 1.077 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/1.092, allocations: 2.469 kB / 1.077 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000131/1.093, allocations: 41.03 kB / 1.077 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003645/1.093, allocations: 88.91 kB / 1.077 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/1.094, allocations: 1.499 MB / 1.079 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003292/1.094, allocations: 51.38 kB / 1.079 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.228e-05/1.094, allocations: 14.31 kB / 1.079 GB, free: 144.1 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.000254/1.095, allocations: 233.3 kB / 1.079 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.095e-05/1.095, allocations: 27.45 kB / 1.079 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/1.096, allocations: 0.4909 MB / 1.08 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/1.096, allocations: 7.516 kB / 1.08 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/1.096, allocations: 0 / 1.08 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/1.096, allocations: 5.031 kB / 1.08 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006658/1.096, allocations: 0.5645 MB / 1.08 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/1.097, allocations: 5.375 kB / 1.08 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003788/1.097, allocations: 80.73 kB / 1.08 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001196/1.097, allocations: 41 kB / 1.08 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/1.097, allocations: 6.062 kB / 1.08 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008652/1.098, allocations: 1.419 MB / 1.082 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/1.098, allocations: 5.109 kB / 1.082 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/1.099, allocations: 0.5953 MB / 1.082 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/1.099, allocations: 130.4 kB / 1.082 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.295e-05/1.099, allocations: 10.53 kB / 1.082 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/1.1, allocations: 48.06 kB / 1.082 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/1.1, allocations: 32.5 kB / 1.082 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/1.1, allocations: 6.5 kB / 1.082 GB, free: 141.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001687/1.1, allocations: 172.9 kB / 1.083 GB, free: 141.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/1.1, allocations: 0 / 1.083 GB, free: 141.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0007838/1.101, allocations: 151.3 kB / 1.083 GB, free: 141.8 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.0002162/1.101, allocations: 135.8 kB / 1.083 GB, free: 141.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00206/1.103, allocations: 1.013 MB / 1.084 GB, free: 141.3 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/1.103, allocations: 0 / 1.084 GB, free: 141.3 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006257/1.104, allocations: 340.3 kB / 1.084 GB, free: 141.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/1.104, allocations: 40.25 kB / 1.084 GB, free: 141.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/1.105, allocations: 0.7462 MB / 1.085 GB, free: 140.8 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/1.106, allocations: 0.7952 MB / 1.086 GB, free: 140.1 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003313/1.106, allocations: 93 kB / 1.086 GB, free: 140.1 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/1.106, allocations: 27.25 kB / 1.086 GB, free: 140.1 MB / 0.698 GB Notification: Performance of SimCode: time 9.22e-07/1.106, allocations: 4 kB / 1.086 GB, free: 140.1 MB / 0.698 GB Notification: Performance of Templates: time 0.008901/1.115, allocations: 4.036 MB / 1.09 GB, free: 138.5 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches