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.001116/0.001116, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.00136/0.00136, allocations: 172.7 kB / 15.95 MB, free: 208 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.494/1.494, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.005/3.005, allocations: 462.6 MB / 0.736 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003624/0.0003624, allocations: 15.89 kB / 0.9021 GB, free: 36.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.378/0.3784, allocations: 159.6 MB / 1.058 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.004098/0.3825, allocations: 3.1 MB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002765/0.3853, allocations: 1.621 MB / 1.063 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002184/0.3855, allocations: 7.938 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002004/0.3858, allocations: 31.72 kB / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004511/0.3862, allocations: 151.3 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005931/0.3868, allocations: 188.5 kB / 1.063 GB, free: 196 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000492/0.3873, allocations: 414.7 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008209/0.3882, allocations: 386.5 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002731/0.3884, allocations: 127.5 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003286/0.3888, allocations: 167.4 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.637e-05/0.3888, allocations: 12 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003025/0.3891, allocations: 139.8 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.053e-05/0.3892, allocations: 79.72 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.638e-05/0.3893, allocations: 73.58 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003744/0.3897, allocations: 347.3 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3897, allocations: 4 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3897, allocations: 0 / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.3897, allocations: 4 kB / 1.065 GB, free: 14.45 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.001137/0.3909, allocations: 0.5941 MB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.3909, allocations: 12.03 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006839/0.3916, allocations: 99.59 kB / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003402/0.392, allocations: 270.5 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.392, allocations: 20.42 kB / 1.066 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.442e-05/0.3921, allocations: 23.94 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000789/0.3929, allocations: 422.5 kB / 1.066 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.3929, allocations: 4 kB / 1.066 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.808e-05/0.3929, allocations: 12 kB / 1.066 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.737e-05/0.393, allocations: 28.3 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000869/0.3939, allocations: 412.8 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.3958, allocations: 1.615 MB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.3969, allocations: 487.1 kB / 1.069 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004155/0.3973, allocations: 209.6 kB / 1.069 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.3975, allocations: 93.08 kB / 1.069 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005543/0.3981, allocations: 275.2 kB / 1.069 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 2.004e-06/0.3981, allocations: 0 / 1.069 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.001834/0.3999, allocations: 0.7843 MB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.4, allocations: 92.97 kB / 1.07 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.4002, allocations: 221.2 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.4003, allocations: 33.7 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.4004, allocations: 164.3 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.244e-05/0.4005, allocations: 94.67 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.582e-05/0.4005, allocations: 12 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4007, allocations: 330.8 kB / 1.071 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003882/0.401, allocations: 184.2 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004341/0.4015, allocations: 261.2 kB / 1.071 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000432/0.4019, allocations: 225.8 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4019, allocations: 0 / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001107/0.4031, allocations: 0.5607 MB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/0.4032, allocations: 191 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.4032, allocations: 4 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002435/0.4034, allocations: 40.83 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003849/0.4038, allocations: 87.86 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001329/0.4052, allocations: 1.505 MB / 1.074 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003199/0.4055, allocations: 55.81 kB / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.598e-05/0.4056, allocations: 16 kB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.486e-06/0.4056, allocations: 5.719 kB / 1.074 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001022/0.4066, allocations: 0.4985 MB / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.4066, allocations: 4 kB / 1.074 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001303/0.4068, allocations: 44.81 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003421/0.4071, allocations: 79.88 kB / 1.074 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/0.4083, allocations: 1.489 MB / 1.076 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.4085, allocations: 51.81 kB / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.295e-05/0.4086, allocations: 19.98 kB / 1.076 GB, free: 2.145 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 ($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.0002164/0.4088, allocations: 236.9 kB / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.477e-05/0.4089, allocations: 23.72 kB / 1.076 GB, free: 1.879 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.4099, allocations: 492.5 kB / 1.077 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.4099, allocations: 4 kB / 1.077 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.4099, allocations: 3.953 kB / 1.077 GB, free: 1.379 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.41, allocations: 3.984 kB / 1.077 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008074/0.4108, allocations: 0.5623 MB / 1.077 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.4108, allocations: 4.062 kB / 1.077 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003658/0.4112, allocations: 79.86 kB / 1.077 GB, free: 0.668 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001251/0.4113, allocations: 48.83 kB / 1.077 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.4113, allocations: 8 kB / 1.077 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/0.4124, allocations: 1.413 MB / 1.079 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4124, allocations: 0 / 1.079 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009845/0.4134, allocations: 0.5615 MB / 1.079 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.4136, allocations: 136.7 kB / 1.079 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.51e-05/0.4136, allocations: 8 kB / 1.079 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002922/0.4139, allocations: 43.95 kB / 1.079 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.414, allocations: 27.95 kB / 1.079 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.4141, allocations: 8 kB / 1.079 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000175/0.4143, allocations: 176.5 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.4e-07/0.4143, allocations: 0 / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006361/0.4149, allocations: 132 kB / 1.08 GB, free: 13.93 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 (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.0001784/0.4151, allocations: 113.3 kB / 1.08 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001802/0.4169, allocations: 1.009 MB / 1.081 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4169, allocations: 192 / 1.081 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005984/0.4175, allocations: 338.5 kB / 1.081 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004544/0.418, allocations: 56.53 kB / 1.081 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.4192, allocations: 0.734 MB / 1.082 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.4196, allocations: 0.7839 MB / 1.083 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003143/0.4199, allocations: 98.33 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.42, allocations: 27.42 kB / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of SimCode: time 3.176e-06/0.42, allocations: 0 / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of Templates: time 0.008343/0.4284, allocations: 4.042 MB / 1.087 GB, free: 6.656 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