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.448/2.448, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001116/0.001115, allocations: 176.8 kB / 487.4 MB, free: 5.047 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.583/1.583, allocations: 221.5 MB / 0.7824 GB, free: 0.9531 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001001, allocations: 103.1 kB / 0.9219 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.379e-05/2.367e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3077, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.003/1.311, allocations: 172.2 MB / 1.374 GB, free: 18.36 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/1.311, allocations: 96.47 kB / 1.374 GB, free: 18.36 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0407/1.352, allocations: 19.2 MB / 1.393 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.72e-07/1.352, allocations: 0 / 1.393 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.415e-05/1.352, allocations: 11.66 kB / 1.393 GB, free: 27.77 MB / 0.8386 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.001066/1.353, allocations: 0.6058 MB / 1.394 GB, free: 27.24 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/1.353, allocations: 7.625 kB / 1.394 GB, free: 27.24 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007741/1.353, allocations: 101.4 kB / 1.394 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003747/1.354, allocations: 273 kB / 1.394 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/1.354, allocations: 7.719 kB / 1.394 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.278e-05/1.354, allocations: 11.53 kB / 1.394 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003874/1.354, allocations: 249.8 kB / 1.394 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004308/1.355, allocations: 342.5 kB / 1.395 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/1.355, allocations: 7.75 kB / 1.395 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.116e-05/1.355, allocations: 0 / 1.395 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.834e-05/1.355, allocations: 22.7 kB / 1.395 GB, free: 26.76 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/1.357, allocations: 1.599 MB / 1.396 GB, free: 25.52 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006831/1.357, allocations: 380.6 kB / 1.397 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/1.358, allocations: 156.7 kB / 1.397 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001614/1.358, allocations: 92.69 kB / 1.397 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003041/1.358, allocations: 218 kB / 1.397 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 1.543e-06/1.358, allocations: 3.938 kB / 1.397 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.000866/1.359, allocations: 428.9 kB / 1.397 GB, free: 25 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.036e-05/1.359, allocations: 84.52 kB / 1.397 GB, free: 24.9 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/1.359, allocations: 187.1 kB / 1.398 GB, free: 24.79 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/1.359, allocations: 28.77 kB / 1.398 GB, free: 24.76 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.171e-05/1.359, allocations: 163.8 kB / 1.398 GB, free: 24.63 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.512e-05/1.359, allocations: 91.12 kB / 1.398 GB, free: 24.56 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.913e-05/1.359, allocations: 3.844 kB / 1.398 GB, free: 24.56 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001238/1.359, allocations: 327.2 kB / 1.398 GB, free: 24.25 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/1.36, allocations: 132.8 kB / 1.398 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/1.36, allocations: 192.9 kB / 1.399 GB, free: 24.14 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002393/1.36, allocations: 170.5 kB / 1.399 GB, free: 24.1 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/1.36, allocations: 3.656 kB / 1.399 GB, free: 24.1 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006136/1.361, allocations: 424.6 kB / 1.399 GB, free: 23.97 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004091/1.361, allocations: 0.9131 MB / 1.4 GB, free: 23.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/1.361, allocations: 0 / 1.4 GB, free: 23.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002247/1.361, allocations: 43.72 kB / 1.4 GB, free: 23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003838/1.362, allocations: 88.39 kB / 1.4 GB, free: 22.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/1.363, allocations: 1.438 MB / 1.402 GB, free: 21.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003194/1.363, allocations: 54.72 kB / 1.402 GB, free: 21.64 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.879e-05/1.363, allocations: 11.44 kB / 1.402 GB, free: 21.64 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.983e-06/1.363, allocations: 3.906 kB / 1.402 GB, free: 21.64 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005596/1.364, allocations: 355.1 kB / 1.402 GB, free: 21.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/1.364, allocations: 7.953 kB / 1.402 GB, free: 21.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001102/1.364, allocations: 42.33 kB / 1.402 GB, free: 21.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003304/1.364, allocations: 90.77 kB / 1.402 GB, free: 21.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009633/1.365, allocations: 1.417 MB / 1.403 GB, free: 20.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002841/1.366, allocations: 42.88 kB / 1.403 GB, free: 20.2 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/1.366, allocations: 15.23 kB / 1.403 GB, free: 20.19 MB / 0.8386 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.0001658/1.366, allocations: 116.7 kB / 1.404 GB, free: 20.08 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.555e-05/1.366, allocations: 23.28 kB / 1.404 GB, free: 20.07 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006408/1.367, allocations: 390.5 kB / 1.404 GB, free: 19.93 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/1.367, allocations: 11.83 kB / 1.404 GB, free: 19.93 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/1.367, allocations: 0 / 1.404 GB, free: 19.93 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/1.367, allocations: 3.984 kB / 1.404 GB, free: 19.92 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005141/1.367, allocations: 0.5074 MB / 1.405 GB, free: 19.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/1.367, allocations: 0 / 1.405 GB, free: 19.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003678/1.368, allocations: 92.84 kB / 1.405 GB, free: 19.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001057/1.368, allocations: 35.23 kB / 1.405 GB, free: 19.5 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.442e-05/1.368, allocations: 6.906 kB / 1.405 GB, free: 19.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009239/1.369, allocations: 1.357 MB / 1.406 GB, free: 18.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.369, allocations: 3.844 kB / 1.406 GB, free: 18.23 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005611/1.369, allocations: 0.4963 MB / 1.406 GB, free: 17.95 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/1.369, allocations: 137.4 kB / 1.407 GB, free: 17.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.121e-05/1.369, allocations: 3.953 kB / 1.407 GB, free: 17.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/1.37, allocations: 42.28 kB / 1.407 GB, free: 17.8 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.967e-05/1.37, allocations: 30.61 kB / 1.407 GB, free: 17.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/1.37, allocations: 11.22 kB / 1.407 GB, free: 17.79 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001443/1.37, allocations: 158.1 kB / 1.407 GB, free: 17.7 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.37, allocations: 0 / 1.407 GB, free: 17.7 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005754/1.371, allocations: 123.8 kB / 1.407 GB, free: 17.7 MB / 0.8386 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.0002014/1.371, allocations: 126 kB / 1.407 GB, free: 17.59 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001049/1.372, allocations: 0.8272 MB / 1.408 GB, free: 17.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/1.372, allocations: 0 / 1.408 GB, free: 17.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003287/1.372, allocations: 281.9 kB / 1.408 GB, free: 17.04 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/1.372, allocations: 42.19 kB / 1.408 GB, free: 17.03 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007828/1.373, allocations: 449.1 kB / 1.409 GB, free: 16.81 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/1.374, allocations: 0.7972 MB / 1.409 GB, free: 16.06 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000315/1.374, allocations: 106.3 kB / 1.409 GB, free: 16.01 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.448e-05/1.374, allocations: 22.44 kB / 1.409 GB, free: 16 MB / 0.8386 GB Notification: Performance of SimCode: time 3.51e-07/1.374, allocations: 0 / 1.409 GB, free: 16 MB / 0.8386 GB Notification: Performance of Templates: time 0.006615/1.381, allocations: 4.109 MB / 1.414 GB, free: 12.65 MB / 0.8386 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