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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001038/0.001038, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.009043/0.009043, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.477/1.477, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.801/2.801, allocations: 462.7 MB / 0.7364 GB, free: 268 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003519, allocations: 8.469 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4113/0.4117, allocations: 159.6 MB / 1.059 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.004237/0.4159, allocations: 3.239 MB / 1.062 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003354/0.4193, allocations: 1.882 MB / 1.064 GB, free: 308 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001746/0.4195, allocations: 3.938 kB / 1.064 GB, free: 304 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001985/0.4197, allocations: 31.72 kB / 1.064 GB, free: 272 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005618/0.4203, allocations: 195.2 kB / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000672/0.421, allocations: 231.5 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004852/0.4215, allocations: 0.4946 MB / 1.065 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007769/0.4223, allocations: 418.6 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002147/0.4225, allocations: 135.5 kB / 1.065 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003023/0.4228, allocations: 167.3 kB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.296e-05/0.4229, allocations: 12 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005216/0.4234, allocations: 343.3 kB / 1.066 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.948e-05/0.4235, allocations: 71.8 kB / 1.066 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.4237, allocations: 161 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005179/0.4242, allocations: 494.6 kB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.4242, allocations: 0 / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.843e-06/0.4242, allocations: 0 / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.4242, allocations: 0 / 1.066 GB, free: 13.56 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.001188/0.4254, allocations: 0.6059 MB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.4255, allocations: 16.02 kB / 1.067 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009335/0.4264, allocations: 112.5 kB / 1.067 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.4268, allocations: 287.6 kB / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.4268, allocations: 16.81 kB / 1.067 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.538e-05/0.4269, allocations: 28.38 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000868/0.4277, allocations: 438.8 kB / 1.068 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.4278, allocations: 0 / 1.068 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/0.4278, allocations: 8 kB / 1.068 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-05/0.4279, allocations: 24.36 kB / 1.068 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.4289, allocations: 432.8 kB / 1.068 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.4308, allocations: 1.626 MB / 1.07 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.4322, allocations: 0.4994 MB / 1.07 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004995/0.4327, allocations: 213.6 kB / 1.07 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001568/0.4329, allocations: 89.08 kB / 1.071 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006183/0.4335, allocations: 291.2 kB / 1.071 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 1.954e-06/0.4335, allocations: 0 / 1.071 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.002095/0.4356, allocations: 0.8012 MB / 1.072 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.4357, allocations: 85.11 kB / 1.072 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002116/0.4359, allocations: 224.9 kB / 1.072 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.4359, allocations: 29.7 kB / 1.072 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.436, allocations: 180.3 kB / 1.072 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.532e-05/0.4361, allocations: 90.66 kB / 1.072 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.542e-05/0.4362, allocations: 29.7 kB / 1.072 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.4363, allocations: 342.8 kB / 1.073 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004677/0.4368, allocations: 180.2 kB / 1.073 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004919/0.4373, allocations: 269.3 kB / 1.073 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009853/0.4383, allocations: 494.9 kB / 1.073 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4383, allocations: 0 / 1.073 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001252/0.4396, allocations: 0.5787 MB / 1.074 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.4397, allocations: 183.1 kB / 1.074 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.4397, allocations: 4 kB / 1.074 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002478/0.44, allocations: 36.83 kB / 1.074 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004368/0.4404, allocations: 91.86 kB / 1.074 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/0.4418, allocations: 1.497 MB / 1.076 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/0.4422, allocations: 55.86 kB / 1.076 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.32e-05/0.4422, allocations: 15.98 kB / 1.076 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.713e-06/0.4422, allocations: 7.938 kB / 1.076 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001174/0.4434, allocations: 0.5177 MB / 1.076 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.4434, allocations: 4 kB / 1.076 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001306/0.4436, allocations: 44.77 kB / 1.076 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000399/0.444, allocations: 100 kB / 1.077 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/0.4452, allocations: 1.481 MB / 1.078 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/0.4456, allocations: 55.8 kB / 1.078 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.4456, allocations: 8 kB / 1.078 GB, free: 0.7539 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.0002502/0.4459, allocations: 253 kB / 1.078 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.868e-05/0.4459, allocations: 27.66 kB / 1.078 GB, free: 480 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001159/0.4471, allocations: 496.6 kB / 1.079 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.4471, allocations: 4 kB / 1.079 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.4471, allocations: 0 / 1.079 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.4471, allocations: 3.984 kB / 1.079 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006379/0.4478, allocations: 0.574 MB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.4478, allocations: 0 / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003773/0.4482, allocations: 83.91 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001211/0.4483, allocations: 36.77 kB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.4483, allocations: 8 kB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.4494, allocations: 1.417 MB / 1.081 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4494, allocations: 3.938 kB / 1.081 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.4504, allocations: 0.5616 MB / 1.081 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.4506, allocations: 132.7 kB / 1.082 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.164e-05/0.4506, allocations: 4 kB / 1.082 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003449/0.451, allocations: 55.88 kB / 1.082 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.4511, allocations: 27.97 kB / 1.082 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.4511, allocations: 11.98 kB / 1.082 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000215/0.4514, allocations: 180.5 kB / 1.082 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4514, allocations: 4 kB / 1.082 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006207/0.452, allocations: 131.9 kB / 1.082 GB, free: 12.5 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.0001911/0.4522, allocations: 111.5 kB / 1.082 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001984/0.4542, allocations: 1.021 MB / 1.083 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.4542, allocations: 0 / 1.083 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000614/0.4548, allocations: 354.8 kB / 1.083 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/0.4553, allocations: 46.41 kB / 1.083 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.4565, allocations: 0.7287 MB / 1.084 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003595/0.4569, allocations: 0.7878 MB / 1.085 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003235/0.4572, allocations: 102.3 kB / 1.085 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.4573, allocations: 31.42 kB / 1.085 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of SimCode: time 3.11e-07/0.4573, allocations: 0 / 1.085 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of Templates: time 0.009146/0.4665, allocations: 4.404 MB / 1.089 GB, free: 4.836 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