Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.251/2.251, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.001155/0.001154, allocations: 178.6 kB / 498.1 MB, free: 5.73 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.625/1.625, allocations: 223.2 MB / 0.7948 GB, free: 17.83 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.001112/0.001112, allocations: 106 kB / 0.9346 GB, free: 6.094 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005127/0.0005128, allocations: 16.97 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3902, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2846/0.6749, allocations: 173 MB / 1.392 GB, free: 4.977 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000344/0.6753, allocations: 99.94 kB / 1.392 GB, free: 4.879 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.04777/0.7231, allocations: 19.38 MB / 1.411 GB, free: 1.301 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.054e-06/0.7231, allocations: 0 / 1.411 GB, free: 1.301 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.547e-05/0.7231, allocations: 12 kB / 1.411 GB, free: 1.289 MB / 0.9011 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.001238/0.7244, allocations: 0.6372 MB / 1.411 GB, free: 0.5977 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.7244, allocations: 12.03 kB / 1.411 GB, free: 0.5859 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008263/0.7253, allocations: 99.48 kB / 1.412 GB, free: 500 kB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004191/0.7257, allocations: 274.5 kB / 1.412 GB, free: 184 kB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.838e-05/0.7258, allocations: 20.38 kB / 1.412 GB, free: 164 kB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.344e-05/0.7258, allocations: 23.94 kB / 1.412 GB, free: 140 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007881/0.7266, allocations: 418.6 kB / 1.412 GB, free: 15.7 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.7266, allocations: 3.938 kB / 1.412 GB, free: 15.7 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.938e-05/0.7267, allocations: 15.98 kB / 1.412 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.932e-05/0.7267, allocations: 20.36 kB / 1.412 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008453/0.7276, allocations: 412.8 kB / 1.413 GB, free: 15.26 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/0.7296, allocations: 1.646 MB / 1.414 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.7308, allocations: 494.2 kB / 1.415 GB, free: 12.98 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001746/0.7309, allocations: 100.9 kB / 1.415 GB, free: 12.87 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005496/0.7315, allocations: 277.3 kB / 1.415 GB, free: 12.58 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=27): time 2.164e-06/0.7315, allocations: 0 / 1.415 GB, free: 12.58 MB / 0.9167 GB Notification: Performance of matching and sorting (n=28): time 0.001858/0.7334, allocations: 0.7757 MB / 1.416 GB, free: 11.78 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.7334, allocations: 81.11 kB / 1.416 GB, free: 11.68 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.7336, allocations: 212.3 kB / 1.416 GB, free: 11.46 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/0.7337, allocations: 29.7 kB / 1.416 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.7338, allocations: 168.3 kB / 1.416 GB, free: 11.26 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 8.073e-05/0.7339, allocations: 90.66 kB / 1.416 GB, free: 11.17 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.036e-05/0.7339, allocations: 8 kB / 1.416 GB, free: 11.16 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.7341, allocations: 338.8 kB / 1.417 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003996/0.7345, allocations: 180.2 kB / 1.417 GB, free: 10.65 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004331/0.7349, allocations: 258.1 kB / 1.417 GB, free: 10.37 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004504/0.7354, allocations: 234.8 kB / 1.417 GB, free: 10.13 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.7354, allocations: 4 kB / 1.417 GB, free: 10.13 MB / 0.9167 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001112/0.7365, allocations: 0.5558 MB / 1.418 GB, free: 9.559 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003728/0.7369, allocations: 0.9021 MB / 1.419 GB, free: 8.582 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.7369, allocations: 4 kB / 1.419 GB, free: 8.578 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002497/0.7372, allocations: 44.81 kB / 1.419 GB, free: 8.531 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.7376, allocations: 91.86 kB / 1.419 GB, free: 8.441 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/0.7391, allocations: 1.505 MB / 1.42 GB, free: 6.797 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003617/0.7394, allocations: 55.89 kB / 1.42 GB, free: 6.742 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.645e-05/0.7395, allocations: 19.98 kB / 1.421 GB, free: 6.723 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 8.967e-06/0.7395, allocations: 4 kB / 1.421 GB, free: 6.719 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001021/0.7405, allocations: 0.4944 MB / 1.421 GB, free: 6.215 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.7405, allocations: 11.97 kB / 1.421 GB, free: 6.203 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001444/0.7407, allocations: 40.83 kB / 1.421 GB, free: 6.16 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.741, allocations: 79.88 kB / 1.421 GB, free: 6.082 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/0.7422, allocations: 1.5 MB / 1.423 GB, free: 4.441 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003082/0.7425, allocations: 43.81 kB / 1.423 GB, free: 4.398 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.879e-05/0.7426, allocations: 27.98 kB / 1.423 GB, free: 4.371 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.0002764/0.7429, allocations: 240.9 kB / 1.423 GB, free: 4.125 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.395e-05/0.7429, allocations: 23.72 kB / 1.423 GB, free: 4.102 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.744, allocations: 492.2 kB / 1.423 GB, free: 3.609 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.744, allocations: 288 / 1.423 GB, free: 3.609 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.744, allocations: 4 kB / 1.423 GB, free: 3.605 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.744, allocations: 3.984 kB / 1.423 GB, free: 3.602 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007047/0.7447, allocations: 0.57 MB / 1.424 GB, free: 2.969 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.7447, allocations: 12.09 kB / 1.424 GB, free: 2.957 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003903/0.7451, allocations: 75.86 kB / 1.424 GB, free: 2.883 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000127/0.7453, allocations: 44.81 kB / 1.424 GB, free: 2.836 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.7453, allocations: 4 kB / 1.424 GB, free: 2.832 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/0.7464, allocations: 1.424 MB / 1.425 GB, free: 1.273 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.7464, allocations: 4.031 kB / 1.425 GB, free: 1.27 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009996/0.7474, allocations: 0.5979 MB / 1.426 GB, free: 0.625 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.7476, allocations: 136.6 kB / 1.426 GB, free: 484 kB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.014e-05/0.7477, allocations: 8 kB / 1.426 GB, free: 476 kB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003104/0.748, allocations: 43.94 kB / 1.426 GB, free: 432 kB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.7481, allocations: 31.91 kB / 1.426 GB, free: 400 kB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.483e-05/0.7481, allocations: 12 kB / 1.426 GB, free: 388 kB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001576/0.7483, allocations: 172.5 kB / 1.426 GB, free: 216 kB / 0.9167 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7483, allocations: 0 / 1.426 GB, free: 216 kB / 0.9167 GB Notification: Performance of remove unused functions: time 0.000667/0.749, allocations: 144 kB / 1.427 GB, free: 72 kB / 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.5913/1.34, allocations: 123.5 kB / 1.427 GB, free: 190.2 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.003245/1.344, allocations: 1.016 MB / 1.428 GB, free: 189.9 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.344, allocations: 3.438 kB / 1.428 GB, free: 189.9 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0009527/1.345, allocations: 335.9 kB / 1.428 GB, free: 189.8 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006061/1.345, allocations: 37.59 kB / 1.428 GB, free: 189.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/1.347, allocations: 0.7369 MB / 1.429 GB, free: 189.4 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/1.348, allocations: 0.7922 MB / 1.43 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0005567/1.348, allocations: 96.61 kB / 1.43 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/1.348, allocations: 28.11 kB / 1.43 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of SimCode: time 1.653e-06/1.348, allocations: 1.281 kB / 1.43 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of Templates: time 0.01401/1.362, allocations: 4.03 MB / 1.434 GB, free: 188.6 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches