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.001156/0.001156, allocations: 98.27 kB / 15.36 MB, free: 0.7305 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.001413/0.001413, allocations: 173.4 kB / 16.27 MB, free: 6.664 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.541/1.541, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.943/2.943, allocations: 462.6 MB / 0.7363 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003854/0.0003854, allocations: 12.72 kB / 0.9027 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3567, allocations: 159.6 MB / 1.059 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.004266/0.361, allocations: 3.231 MB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00289/0.3639, allocations: 1.722 MB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001843/0.3642, allocations: 7.938 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001933/0.3644, allocations: 35.7 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005435/0.3649, allocations: 183.2 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006292/0.3656, allocations: 223.5 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005547/0.3661, allocations: 0.4908 MB / 1.064 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000802/0.3669, allocations: 422.5 kB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.3672, allocations: 123.5 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003274/0.3675, allocations: 171.4 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.3676, allocations: 12 kB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005244/0.3681, allocations: 315.3 kB / 1.065 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.3682, allocations: 79.72 kB / 1.065 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.3684, allocations: 157 kB / 1.066 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006174/0.369, allocations: 466.7 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3691, allocations: 4 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3691, allocations: 0 / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.4e-05/0.3691, allocations: 0 / 1.066 GB, free: 13.32 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.001266/0.3704, allocations: 0.602 MB / 1.067 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.3704, allocations: 11.97 kB / 1.067 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007438/0.3712, allocations: 96.56 kB / 1.067 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003944/0.3716, allocations: 275.7 kB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/0.3716, allocations: 16.81 kB / 1.067 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.743e-05/0.3717, allocations: 20.38 kB / 1.067 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008413/0.3725, allocations: 430.9 kB / 1.067 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.3725, allocations: 3.938 kB / 1.067 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.879e-05/0.3726, allocations: 19.98 kB / 1.067 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.066e-05/0.3726, allocations: 20.36 kB / 1.067 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009535/0.3736, allocations: 420.7 kB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001829/0.3754, allocations: 1.603 MB / 1.069 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.3767, allocations: 489.1 kB / 1.07 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000462/0.3771, allocations: 213.6 kB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001412/0.3773, allocations: 89.09 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007855/0.3781, allocations: 287.1 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 2.645e-06/0.3781, allocations: 3.938 kB / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.002991/0.3811, allocations: 0.7882 MB / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/0.3812, allocations: 88.98 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003335/0.3815, allocations: 229.1 kB / 1.072 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.173e-05/0.3816, allocations: 33.7 kB / 1.072 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.3818, allocations: 164.3 kB / 1.072 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.3819, allocations: 90.66 kB / 1.072 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.813e-05/0.382, allocations: 37.7 kB / 1.072 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3822, allocations: 330.8 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000669/0.3829, allocations: 184.2 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000758/0.3836, allocations: 257.3 kB / 1.073 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/0.3851, allocations: 483.9 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3852, allocations: 0 / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001907/0.3871, allocations: 0.567 MB / 1.074 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001772/0.3873, allocations: 183.1 kB / 1.074 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.3873, allocations: 4 kB / 1.074 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003471/0.3876, allocations: 48.75 kB / 1.074 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006497/0.3883, allocations: 83.88 kB / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00218/0.3905, allocations: 1.493 MB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005544/0.3911, allocations: 55.86 kB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.382e-05/0.3911, allocations: 12 kB / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.3912, allocations: 4 kB / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00174/0.3929, allocations: 0.4982 MB / 1.076 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3929, allocations: 3.984 kB / 1.076 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002052/0.3932, allocations: 36.83 kB / 1.076 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005765/0.3938, allocations: 91.81 kB / 1.076 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001804/0.3956, allocations: 1.489 MB / 1.078 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004821/0.3961, allocations: 55.86 kB / 1.078 GB, free: 0.7031 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.3961, allocations: 12 kB / 1.078 GB, free: 0.6914 MB / 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.0003101/0.3964, allocations: 241 kB / 1.078 GB, free: 456 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.528e-05/0.3965, allocations: 27.66 kB / 1.078 GB, free: 428 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001658/0.3982, allocations: 492.5 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.3982, allocations: 4 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3982, allocations: 0 / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3983, allocations: 0 / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.3993, allocations: 0.5701 MB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3993, allocations: 7.875 kB / 1.079 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006082/0.3999, allocations: 83.86 kB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001901/0.4001, allocations: 32.83 kB / 1.079 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.001e-05/0.4002, allocations: 12.09 kB / 1.079 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001604/0.4018, allocations: 1.42 MB / 1.08 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4018, allocations: 4.031 kB / 1.08 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.4034, allocations: 0.5615 MB / 1.081 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000216/0.4036, allocations: 136.7 kB / 1.081 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.954e-05/0.4037, allocations: 8 kB / 1.081 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004993/0.4042, allocations: 39.95 kB / 1.081 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.4043, allocations: 31.95 kB / 1.081 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.4044, allocations: 12 kB / 1.081 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002498/0.4047, allocations: 176.5 kB / 1.081 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.01e-07/0.4047, allocations: 4 kB / 1.081 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001056/0.4057, allocations: 131.9 kB / 1.081 GB, free: 12.45 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.0002171/0.406, allocations: 107.2 kB / 1.082 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002917/0.4089, allocations: 1.021 MB / 1.083 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4089, allocations: 0 / 1.083 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0009706/0.4099, allocations: 346.6 kB / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007648/0.4107, allocations: 36.98 kB / 1.083 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.4125, allocations: 0.7357 MB / 1.084 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/0.4131, allocations: 0.7839 MB / 1.084 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005146/0.4136, allocations: 102.2 kB / 1.084 GB, free: 9.203 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.4138, allocations: 31.42 kB / 1.085 GB, free: 9.172 MB / 0.8419 GB Notification: Performance of SimCode: time 2.846e-06/0.4138, allocations: 0 / 1.085 GB, free: 9.172 MB / 0.8419 GB Notification: Performance of Templates: time 0.01276/0.4266, allocations: 4.145 MB / 1.089 GB, free: 5.07 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/jenkins/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