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.001055/0.001055, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 187.3 kB / 16.92 MB, free: 6.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.758/2.758, allocations: 462.7 MB / 0.7371 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003785/0.0003787, allocations: 13.94 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3632, allocations: 159.6 MB / 1.059 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.004855/0.3681, allocations: 3.235 MB / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003571/0.3717, allocations: 1.878 MB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002844/0.372, allocations: 7.938 kB / 1.064 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002744/0.3723, allocations: 31.72 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000829/0.3731, allocations: 199.2 kB / 1.065 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000826/0.374, allocations: 228.8 kB / 1.065 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000742/0.3747, allocations: 0.4908 MB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009847/0.3757, allocations: 422.5 kB / 1.066 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003727/0.3761, allocations: 131.5 kB / 1.066 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004702/0.3766, allocations: 175.3 kB / 1.066 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.314e-05/0.3767, allocations: 12 kB / 1.066 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007472/0.3774, allocations: 343.3 kB / 1.066 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.3776, allocations: 83.78 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002373/0.3778, allocations: 149 kB / 1.066 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006082/0.3785, allocations: 367.3 kB / 1.067 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3785, allocations: 0 / 1.067 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.335e-06/0.3785, allocations: 4 kB / 1.067 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.284e-05/0.3785, allocations: 0 / 1.067 GB, free: 13.21 MB / 0.8262 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.00145/0.38, allocations: 0.6059 MB / 1.067 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.38, allocations: 11.97 kB / 1.067 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/0.3811, allocations: 116.5 kB / 1.068 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.3815, allocations: 287.7 kB / 1.068 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.532e-05/0.3815, allocations: 20.81 kB / 1.068 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.585e-05/0.3816, allocations: 16.38 kB / 1.068 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009477/0.3826, allocations: 442.8 kB / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.3826, allocations: 0 / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.913e-05/0.3826, allocations: 8 kB / 1.068 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-05/0.3827, allocations: 28.3 kB / 1.068 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.3838, allocations: 432.8 kB / 1.069 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/0.386, allocations: 1.63 MB / 1.07 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.3874, allocations: 0.4892 MB / 1.071 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005154/0.3879, allocations: 215.4 kB / 1.071 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001682/0.3881, allocations: 89.09 kB / 1.071 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006628/0.3888, allocations: 291.2 kB / 1.071 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 1.904e-06/0.3888, allocations: 0 / 1.071 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.002278/0.3911, allocations: 0.8083 MB / 1.072 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.194e-05/0.3911, allocations: 85.05 kB / 1.072 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002614/0.3914, allocations: 224.9 kB / 1.072 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.117e-05/0.3915, allocations: 33.7 kB / 1.072 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.3916, allocations: 168.3 kB / 1.073 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.041e-05/0.3917, allocations: 90.66 kB / 1.073 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.615e-05/0.3918, allocations: 37.7 kB / 1.073 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001571/0.3919, allocations: 330.8 kB / 1.073 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000485/0.3924, allocations: 192.2 kB / 1.073 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005352/0.393, allocations: 265.3 kB / 1.074 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.394, allocations: 499.8 kB / 1.074 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.3941, allocations: 0 / 1.074 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001376/0.3954, allocations: 0.5749 MB / 1.075 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.3956, allocations: 179.1 kB / 1.075 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3956, allocations: 3.984 kB / 1.075 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002704/0.3959, allocations: 52.8 kB / 1.075 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004404/0.3964, allocations: 95.8 kB / 1.075 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001605/0.398, allocations: 1.493 MB / 1.076 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004232/0.3984, allocations: 55.8 kB / 1.076 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-05/0.3985, allocations: 15.98 kB / 1.076 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.829e-06/0.3985, allocations: 4 kB / 1.076 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001294/0.3998, allocations: 0.5099 MB / 1.077 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3998, allocations: 3.984 kB / 1.077 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001387/0.3999, allocations: 41.05 kB / 1.077 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/0.4004, allocations: 99.8 kB / 1.077 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/0.4018, allocations: 1.485 MB / 1.079 GB, free: 484 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003701/0.4021, allocations: 47.8 kB / 1.079 GB, free: 436 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.81e-05/0.4022, allocations: 19.98 kB / 1.079 GB, free: 416 kB / 0.8262 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 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002523/0.4024, allocations: 237 kB / 1.079 GB, free: 168 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.582e-05/0.4025, allocations: 27.66 kB / 1.079 GB, free: 140 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001218/0.4037, allocations: 0.4927 MB / 1.079 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.4038, allocations: 4 kB / 1.079 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/0.4038, allocations: 0 / 1.079 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.4038, allocations: 7.984 kB / 1.079 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007419/0.4045, allocations: 0.5623 MB / 1.08 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.4045, allocations: 4 kB / 1.08 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003844/0.4049, allocations: 83.84 kB / 1.08 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00013/0.4051, allocations: 40.92 kB / 1.08 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.4051, allocations: 4 kB / 1.08 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/0.4064, allocations: 1.424 MB / 1.081 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4064, allocations: 4.062 kB / 1.081 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.4076, allocations: 0.5653 MB / 1.082 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.4078, allocations: 136.7 kB / 1.082 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.832e-05/0.4079, allocations: 8 kB / 1.082 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003573/0.4083, allocations: 43.94 kB / 1.082 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.4084, allocations: 23.97 kB / 1.082 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.833e-05/0.4084, allocations: 15.98 kB / 1.082 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002377/0.4087, allocations: 180.5 kB / 1.082 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of sort global known variables: time 5.11e-07/0.4087, allocations: 7.875 kB / 1.082 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006439/0.4093, allocations: 131.9 kB / 1.082 GB, free: 12.15 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002061/0.4095, allocations: 107.2 kB / 1.083 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002192/0.4117, allocations: 1.037 MB / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.4117, allocations: 0 / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006471/0.4124, allocations: 338.8 kB / 1.084 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005079/0.4129, allocations: 51.78 kB / 1.084 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.4144, allocations: 0.7602 MB / 1.085 GB, free: 9.762 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.4149, allocations: 0.7878 MB / 1.085 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.4151, allocations: 35.42 kB / 1.085 GB, free: 8.91 MB / 0.8419 GB Notification: Performance of SimCode: time 7.22e-07/0.4151, allocations: 0 / 1.085 GB, free: 8.91 MB / 0.8419 GB Notification: Performance of Templates: time 0.009692/0.4248, allocations: 5.191 MB / 1.091 GB, free: 3.73 MB / 0.8419 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches