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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.718/2.718, allocations: 436.5 MB / 0.7104 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004781/0.0004779, allocations: 8 kB / 0.8708 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7796/0.78, allocations: 153.6 MB / 1.021 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.004112/0.7842, allocations: 3.036 MB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002615/0.7869, allocations: 1.59 MB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.7871, allocations: 4 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001726/0.7872, allocations: 31.77 kB / 1.025 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004444/0.7877, allocations: 139.5 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005486/0.7883, allocations: 183.5 kB / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003142/0.7886, allocations: 223.5 kB / 1.026 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007705/0.7894, allocations: 386.5 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002309/0.7896, allocations: 123.6 kB / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002665/0.7899, allocations: 127.5 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.641e-05/0.7899, allocations: 12 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003532/0.7903, allocations: 139.8 kB / 1.027 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.7904, allocations: 79.78 kB / 1.027 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.7906, allocations: 69.52 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005244/0.7911, allocations: 337.1 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.7911, allocations: 0 / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.154e-06/0.7911, allocations: 0 / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.7911, allocations: 4 kB / 1.027 GB, free: 10.62 MB / 0.7794 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.001245/0.7924, allocations: 0.6057 MB / 1.028 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.075e-05/0.7925, allocations: 15.98 kB / 1.028 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007625/0.7932, allocations: 99.53 kB / 1.028 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004028/0.7936, allocations: 282.5 kB / 1.028 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.7937, allocations: 20.39 kB / 1.028 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.317e-05/0.7937, allocations: 20 kB / 1.028 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008193/0.7946, allocations: 418.6 kB / 1.029 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.7946, allocations: 7.938 kB / 1.029 GB, free: 9.047 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.098e-05/0.7946, allocations: 7.984 kB / 1.029 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.467e-05/0.7947, allocations: 28.36 kB / 1.029 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009239/0.7956, allocations: 412.8 kB / 1.029 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.7975, allocations: 1.615 MB / 1.031 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.7987, allocations: 485.1 kB / 1.031 GB, free: 6.371 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001639/0.7989, allocations: 97.03 kB / 1.031 GB, free: 6.258 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005582/0.7994, allocations: 278.5 kB / 1.031 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=27): time 2.234e-06/0.7994, allocations: 0 / 1.031 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.001973/0.8014, allocations: 0.7814 MB / 1.032 GB, free: 5.156 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.8015, allocations: 89.09 kB / 1.032 GB, free: 5.051 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.8018, allocations: 220.9 kB / 1.032 GB, free: 4.824 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.193e-05/0.8018, allocations: 29.7 kB / 1.032 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.8019, allocations: 172.4 kB / 1.033 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.696e-05/0.802, allocations: 90.66 kB / 1.033 GB, free: 4.527 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.13e-05/0.8021, allocations: 4 kB / 1.033 GB, free: 4.523 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.8022, allocations: 338.8 kB / 1.033 GB, free: 4.184 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004092/0.8026, allocations: 180.2 kB / 1.033 GB, free: 4.008 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004357/0.8031, allocations: 253.3 kB / 1.033 GB, free: 3.73 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004554/0.8035, allocations: 229.8 kB / 1.034 GB, free: 3.5 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.8035, allocations: 0 / 1.034 GB, free: 3.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001176/0.8047, allocations: 0.5636 MB / 1.034 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.000395/0.8051, allocations: 0.903 MB / 1.035 GB, free: 1.945 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.8051, allocations: 4 kB / 1.035 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.8054, allocations: 40.83 kB / 1.035 GB, free: 1.898 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004092/0.8058, allocations: 91.86 kB / 1.035 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/0.8073, allocations: 1.516 MB / 1.037 GB, free: 160 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/0.8076, allocations: 47.89 kB / 1.037 GB, free: 112 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.313e-05/0.8077, allocations: 15.98 kB / 1.037 GB, free: 96 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.367e-06/0.8077, allocations: 4 kB / 1.037 GB, free: 92 kB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001081/0.8088, allocations: 0.5029 MB / 1.037 GB, free: 15.58 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.8088, allocations: 4 kB / 1.037 GB, free: 15.57 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000132/0.8089, allocations: 40.78 kB / 1.037 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003483/0.8093, allocations: 92.02 kB / 1.037 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/0.8105, allocations: 1.501 MB / 1.039 GB, free: 13.8 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/0.8108, allocations: 55.78 kB / 1.039 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.631e-05/0.8108, allocations: 12 kB / 1.039 GB, free: 13.73 MB / 0.795 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.0002549/0.8111, allocations: 237.1 kB / 1.039 GB, free: 13.49 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.015e-05/0.8111, allocations: 23.72 kB / 1.039 GB, free: 13.47 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00108/0.8122, allocations: 0.4925 MB / 1.04 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.8122, allocations: 4 kB / 1.04 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.8123, allocations: 4 kB / 1.04 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.8123, allocations: 3.938 kB / 1.04 GB, free: 12.95 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006842/0.813, allocations: 0.5623 MB / 1.04 GB, free: 12.33 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.813, allocations: 4 kB / 1.04 GB, free: 12.32 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003791/0.8134, allocations: 83.95 kB / 1.04 GB, free: 12.24 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001215/0.8135, allocations: 36.83 kB / 1.04 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/0.8135, allocations: 8 kB / 1.04 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0011/0.8146, allocations: 1.421 MB / 1.042 GB, free: 10.64 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.8147, allocations: 4.031 kB / 1.042 GB, free: 10.64 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.8157, allocations: 0.5937 MB / 1.042 GB, free: 10 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000157/0.8158, allocations: 137 kB / 1.042 GB, free: 9.848 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.407e-05/0.8159, allocations: 8 kB / 1.042 GB, free: 9.84 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/0.8162, allocations: 43.95 kB / 1.042 GB, free: 9.797 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.895e-05/0.8163, allocations: 35.94 kB / 1.043 GB, free: 9.762 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.8163, allocations: 8 kB / 1.043 GB, free: 9.754 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001853/0.8165, allocations: 172.5 kB / 1.043 GB, free: 9.59 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8165, allocations: 0 / 1.043 GB, free: 9.59 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006233/0.8172, allocations: 128 kB / 1.043 GB, free: 9.465 MB / 0.795 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.000193/0.8174, allocations: 123.1 kB / 1.043 GB, free: 9.336 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001916/0.8193, allocations: 1.001 MB / 1.044 GB, free: 8.285 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.8193, allocations: 0 / 1.044 GB, free: 8.285 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006556/0.82, allocations: 351.4 kB / 1.044 GB, free: 7.93 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.8204, allocations: 48.42 kB / 1.044 GB, free: 7.883 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.8217, allocations: 0.7215 MB / 1.045 GB, free: 7.125 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.8221, allocations: 0.7917 MB / 1.046 GB, free: 6.305 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002929/0.8224, allocations: 98.14 kB / 1.046 GB, free: 6.207 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.424e-05/0.8225, allocations: 27.44 kB / 1.046 GB, free: 6.18 MB / 0.795 GB Notification: Performance of SimCode: time 7.92e-07/0.8225, allocations: 0 / 1.046 GB, free: 6.18 MB / 0.795 GB Notification: Performance of Templates: time 0.008205/0.8307, allocations: 4.036 MB / 1.05 GB, free: 2.191 MB / 0.795 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