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.433/1.433, allocations: 249.5 MB / 257 MB, free: 6.922 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.001123/0.001123, allocations: 184.8 kB / 316.3 MB, free: 3.289 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.497/1.497, allocations: 205.3 MB / 0.5671 GB, free: 15.86 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.0008845/0.0008845, allocations: 98.27 kB / 0.6714 GB, free: 4.973 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.774e-05/1.777e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1614/0.1614, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5836/0.7451, allocations: 155.3 MB / 1.037 GB, free: 108 kB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.7454, allocations: 95.81 kB / 1.037 GB, free: 52 kB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.04209/0.7875, allocations: 17.58 MB / 1.054 GB, free: 1.402 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.041e-06/0.7875, allocations: 0 / 1.054 GB, free: 1.402 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.805e-05/0.7876, allocations: 8 kB / 1.054 GB, free: 1.395 MB / 0.6667 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.0009737/0.7885, allocations: 0.6085 MB / 1.055 GB, free: 0.7578 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.7886, allocations: 12.03 kB / 1.055 GB, free: 0.7461 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007678/0.7894, allocations: 95.61 kB / 1.055 GB, free: 0.6523 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.7897, allocations: 278.4 kB / 1.055 GB, free: 372 kB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.7897, allocations: 12 kB / 1.055 GB, free: 360 kB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/0.7898, allocations: 12 kB / 1.055 GB, free: 348 kB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003892/0.7902, allocations: 251.7 kB / 1.055 GB, free: 184 kB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000485/0.7907, allocations: 334 kB / 1.056 GB, free: 15.91 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.7907, allocations: 7.938 kB / 1.056 GB, free: 15.9 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.195e-05/0.7907, allocations: 3.938 kB / 1.056 GB, free: 15.89 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.392e-05/0.7908, allocations: 27.55 kB / 1.056 GB, free: 15.87 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.7926, allocations: 1.597 MB / 1.057 GB, free: 14.34 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00074/0.7933, allocations: 385.1 kB / 1.058 GB, free: 14.05 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.7936, allocations: 155.5 kB / 1.058 GB, free: 13.95 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001472/0.7937, allocations: 93.03 kB / 1.058 GB, free: 13.84 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003054/0.794, allocations: 215.6 kB / 1.058 GB, free: 13.66 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=27): time 1.714e-06/0.794, allocations: 4 kB / 1.058 GB, free: 13.65 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28): time 0.0008532/0.7949, allocations: 433.5 kB / 1.059 GB, free: 13.3 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.795, allocations: 81.05 kB / 1.059 GB, free: 13.2 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.7951, allocations: 192.7 kB / 1.059 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.7952, allocations: 25.7 kB / 1.059 GB, free: 13.01 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.146e-05/0.7953, allocations: 165.2 kB / 1.059 GB, free: 12.87 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.136e-05/0.7953, allocations: 85.88 kB / 1.059 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.009e-05/0.7954, allocations: 8.094 kB / 1.059 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.7955, allocations: 333.2 kB / 1.059 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.7957, allocations: 125.3 kB / 1.06 GB, free: 12.39 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.7959, allocations: 198.4 kB / 1.06 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000267/0.7962, allocations: 161.4 kB / 1.06 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.7962, allocations: 0 / 1.06 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007064/0.7969, allocations: 432.4 kB / 1.06 GB, free: 11.78 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000347/0.7973, allocations: 0.9019 MB / 1.061 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.7973, allocations: 0 / 1.061 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002022/0.7975, allocations: 42.19 kB / 1.061 GB, free: 10.78 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004008/0.7979, allocations: 94.42 kB / 1.061 GB, free: 10.69 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.7991, allocations: 1.436 MB / 1.063 GB, free: 9.223 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003357/0.7995, allocations: 55.08 kB / 1.063 GB, free: 9.172 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.011e-05/0.7995, allocations: 12 kB / 1.063 GB, free: 9.16 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.135e-06/0.7995, allocations: 5.25 kB / 1.063 GB, free: 9.156 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006379/0.8002, allocations: 354.3 kB / 1.063 GB, free: 8.898 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.8002, allocations: 4 kB / 1.063 GB, free: 8.895 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001232/0.8003, allocations: 47.89 kB / 1.063 GB, free: 8.852 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/0.8007, allocations: 91.55 kB / 1.063 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.8018, allocations: 1.418 MB / 1.065 GB, free: 7.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002932/0.8021, allocations: 51.17 kB / 1.065 GB, free: 7.27 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.8021, allocations: 12 kB / 1.065 GB, free: 7.258 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.0001053/0.8023, allocations: 112.7 kB / 1.065 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.51e-05/0.8023, allocations: 23.72 kB / 1.065 GB, free: 7.121 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006801/0.803, allocations: 395.7 kB / 1.065 GB, free: 6.82 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.803, allocations: 11.92 kB / 1.065 GB, free: 6.809 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.803, allocations: 0 / 1.065 GB, free: 6.809 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.803, allocations: 3.938 kB / 1.065 GB, free: 6.805 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005615/0.8036, allocations: 0.5136 MB / 1.066 GB, free: 6.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.8036, allocations: 4.094 kB / 1.066 GB, free: 6.312 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003851/0.804, allocations: 83.61 kB / 1.066 GB, free: 6.234 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001076/0.8041, allocations: 32.14 kB / 1.066 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.8042, allocations: 4 kB / 1.066 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001071/0.8052, allocations: 1.358 MB / 1.067 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.8053, allocations: 0 / 1.067 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006427/0.8059, allocations: 0.4902 MB / 1.068 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.8061, allocations: 134.4 kB / 1.068 GB, free: 4.215 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.564e-05/0.8061, allocations: 7.938 kB / 1.068 GB, free: 4.207 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.8064, allocations: 39.95 kB / 1.068 GB, free: 4.168 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.584e-05/0.8065, allocations: 27.08 kB / 1.068 GB, free: 4.145 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.483e-05/0.8066, allocations: 11.38 kB / 1.068 GB, free: 4.137 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001519/0.8067, allocations: 156.8 kB / 1.068 GB, free: 4.004 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8067, allocations: 0 / 1.068 GB, free: 4.004 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005967/0.8073, allocations: 131.8 kB / 1.068 GB, free: 3.879 MB / 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.0002118/0.8075, allocations: 119.1 kB / 1.068 GB, free: 3.754 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001221/0.8088, allocations: 0.8321 MB / 1.069 GB, free: 3.043 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.8088, allocations: 0 / 1.069 GB, free: 3.043 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000424/0.8092, allocations: 280.7 kB / 1.069 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003495/0.8096, allocations: 39 kB / 1.069 GB, free: 2.781 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009891/0.8106, allocations: 443.9 kB / 1.07 GB, free: 2.367 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.811, allocations: 0.7946 MB / 1.071 GB, free: 1.555 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.000336/0.8114, allocations: 106 kB / 1.071 GB, free: 1.453 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.348e-05/0.8115, allocations: 27.42 kB / 1.071 GB, free: 1.426 MB / 0.6823 GB Notification: Performance of SimCode: time 5.11e-07/0.8115, allocations: 0 / 1.071 GB, free: 1.426 MB / 0.6823 GB Notification: Performance of Templates: time 0.007911/0.8194, allocations: 4.115 MB / 1.075 GB, free: 13.37 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