Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.455/2.455, allocations: 390.3 MB / 402.8 MB, free: 6.688 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.001221/0.001221, allocations: 176.8 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 221.3 MB / 0.7915 GB, free: 5.418 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.0009053/0.0009054, allocations: 99.73 kB / 0.9318 GB, free: 5.723 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.178e-05/3.183e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3593, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.161/1.521, allocations: 173.7 MB / 1.388 GB, free: 13.92 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003256/1.521, allocations: 91.72 kB / 1.388 GB, free: 13.87 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.05066/1.572, allocations: 19.28 MB / 1.407 GB, free: 13.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.542e-06/1.572, allocations: 0 / 1.407 GB, free: 13.5 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.221e-05/1.572, allocations: 8 kB / 1.407 GB, free: 13.49 MB / 0.8698 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.001435/1.573, allocations: 0.6098 MB / 1.408 GB, free: 12.85 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/1.573, allocations: 8.031 kB / 1.408 GB, free: 12.84 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009576/1.574, allocations: 99.48 kB / 1.408 GB, free: 12.74 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00052/1.575, allocations: 270 kB / 1.408 GB, free: 12.46 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/1.575, allocations: 26.56 kB / 1.408 GB, free: 12.44 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.208e-05/1.575, allocations: 19.23 kB / 1.408 GB, free: 12.43 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006692/1.576, allocations: 364.1 kB / 1.409 GB, free: 12.13 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/1.576, allocations: 3.938 kB / 1.409 GB, free: 12.13 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/1.576, allocations: 14.8 kB / 1.409 GB, free: 12.12 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.172e-05/1.576, allocations: 24.36 kB / 1.409 GB, free: 12.09 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005713/1.577, allocations: 316.5 kB / 1.409 GB, free: 11.89 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002298/1.579, allocations: 1.647 MB / 1.411 GB, free: 10.32 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000837/1.58, allocations: 388.3 kB / 1.411 GB, free: 10.02 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/1.58, allocations: 170.1 kB / 1.411 GB, free: 9.902 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001739/1.58, allocations: 88.05 kB / 1.411 GB, free: 9.801 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003942/1.581, allocations: 232.4 kB / 1.411 GB, free: 9.605 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=27): time 1.633e-06/1.581, allocations: 0 / 1.411 GB, free: 9.605 MB / 0.8698 GB Notification: Performance of matching and sorting (n=28): time 0.001026/1.582, allocations: 439.2 kB / 1.412 GB, free: 9.254 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/1.582, allocations: 85.09 kB / 1.412 GB, free: 9.152 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/1.582, allocations: 198.6 kB / 1.412 GB, free: 8.977 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.764e-05/1.582, allocations: 36.81 kB / 1.412 GB, free: 8.938 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/1.582, allocations: 174.9 kB / 1.412 GB, free: 8.789 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 8.616e-05/1.582, allocations: 89.22 kB / 1.412 GB, free: 8.711 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.962e-05/1.582, allocations: 7.125 kB / 1.412 GB, free: 8.711 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001637/1.582, allocations: 341.3 kB / 1.413 GB, free: 8.379 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000237/1.583, allocations: 131.8 kB / 1.413 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002601/1.583, allocations: 208.9 kB / 1.413 GB, free: 8.113 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/1.583, allocations: 184.5 kB / 1.413 GB, free: 7.977 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/1.583, allocations: 0 / 1.413 GB, free: 7.977 MB / 0.8698 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008882/1.584, allocations: 479.7 kB / 1.414 GB, free: 7.605 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004648/1.585, allocations: 0.8986 MB / 1.415 GB, free: 6.648 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/1.585, allocations: 4 kB / 1.415 GB, free: 6.645 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002585/1.585, allocations: 44.75 kB / 1.415 GB, free: 6.602 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004237/1.585, allocations: 95.67 kB / 1.415 GB, free: 6.512 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/1.587, allocations: 1.493 MB / 1.416 GB, free: 4.969 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003735/1.587, allocations: 54.55 kB / 1.416 GB, free: 4.922 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-05/1.587, allocations: 15.94 kB / 1.416 GB, free: 4.91 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/1.587, allocations: 8.062 kB / 1.416 GB, free: 4.902 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007518/1.588, allocations: 408.3 kB / 1.417 GB, free: 4.598 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/1.588, allocations: 4 kB / 1.417 GB, free: 4.594 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001343/1.588, allocations: 39.2 kB / 1.417 GB, free: 4.559 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000372/1.589, allocations: 87.72 kB / 1.417 GB, free: 4.477 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/1.59, allocations: 1.478 MB / 1.418 GB, free: 2.957 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003343/1.59, allocations: 50.97 kB / 1.418 GB, free: 2.914 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.137e-05/1.59, allocations: 15.3 kB / 1.418 GB, free: 2.902 MB / 0.8698 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.0001602/1.591, allocations: 128.4 kB / 1.418 GB, free: 2.777 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.623e-05/1.591, allocations: 27.78 kB / 1.418 GB, free: 2.75 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000717/1.591, allocations: 394.4 kB / 1.419 GB, free: 2.465 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/1.591, allocations: 4 kB / 1.419 GB, free: 2.461 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/1.591, allocations: 3.984 kB / 1.419 GB, free: 2.457 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/1.591, allocations: 3.938 kB / 1.419 GB, free: 2.453 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008009/1.592, allocations: 0.5763 MB / 1.419 GB, free: 1.906 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/1.592, allocations: 0 / 1.419 GB, free: 1.906 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003822/1.593, allocations: 75.92 kB / 1.419 GB, free: 1.832 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001349/1.593, allocations: 43.61 kB / 1.419 GB, free: 1.793 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.316e-05/1.593, allocations: 15.23 kB / 1.42 GB, free: 1.781 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/1.594, allocations: 1.413 MB / 1.421 GB, free: 324 kB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.594, allocations: 3.938 kB / 1.421 GB, free: 320 kB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007079/1.595, allocations: 0.4951 MB / 1.421 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001749/1.595, allocations: 138.6 kB / 1.422 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.119e-05/1.595, allocations: 3.312 kB / 1.422 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003201/1.595, allocations: 43.2 kB / 1.422 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/1.595, allocations: 38.47 kB / 1.422 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-05/1.595, allocations: 11.94 kB / 1.422 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001831/1.596, allocations: 169.4 kB / 1.422 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.8e-07/1.596, allocations: 0 / 1.422 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0006678/1.596, allocations: 149 kB / 1.422 GB, free: 15.37 MB / 0.8855 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.0002262/1.597, allocations: 126.6 kB / 1.422 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001377/1.598, allocations: 0.8659 MB / 1.423 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/1.598, allocations: 0 / 1.423 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004324/1.598, allocations: 290.4 kB / 1.423 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/1.599, allocations: 48.97 kB / 1.423 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/1.6, allocations: 470.9 kB / 1.424 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004453/1.6, allocations: 0.796 MB / 1.424 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0003558/1.601, allocations: 110 kB / 1.425 GB, free: 12.87 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.915e-05/1.601, allocations: 22.69 kB / 1.425 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of SimCode: time 4.11e-07/1.601, allocations: 0 / 1.425 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of Templates: time 0.009534/1.61, allocations: 4.307 MB / 1.429 GB, free: 8.594 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches