Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.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.Lines.Examples.ACSimpleGridMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 98.8 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.001212/0.001212, allocations: 187 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.594/1.594, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.81/2.81, allocations: 462.6 MB / 0.737 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000324/0.0003241, allocations: 9.25 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2906, allocations: 159.6 MB / 1.059 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium): time 0.006699/0.2973, allocations: 4.809 MB / 1.064 GB, free: 152 kB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.005831/0.3032, allocations: 3.755 MB / 1.068 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004178/0.3037, allocations: 11.94 kB / 1.068 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0009603/0.3046, allocations: 230.6 kB / 1.068 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001272/0.3059, allocations: 417.9 kB / 1.068 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007429/0.3067, allocations: 235.5 kB / 1.069 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001283/0.308, allocations: 0.9075 MB / 1.069 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.3095, allocations: 0.8518 MB / 1.07 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005274/0.3101, allocations: 287.2 kB / 1.071 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005035/0.3106, allocations: 270.9 kB / 1.071 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.531e-05/0.3107, allocations: 20 kB / 1.071 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006428/0.3113, allocations: 335.3 kB / 1.071 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001773/0.3115, allocations: 139.5 kB / 1.071 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003667/0.3119, allocations: 240.5 kB / 1.071 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009576/0.3129, allocations: 0.6624 MB / 1.072 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3129, allocations: 0 / 1.072 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.234e-06/0.3129, allocations: 0 / 1.072 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.969e-05/0.3129, allocations: 0 / 1.072 GB, free: 7.785 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001605/0.3145, allocations: 0.7363 MB / 1.073 GB, free: 7 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.3146, allocations: 11.97 kB / 1.073 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003192/0.3178, allocations: 0.7023 MB / 1.074 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008616/0.3187, allocations: 464.2 kB / 1.074 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.3187, allocations: 29.02 kB / 1.074 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.3188, allocations: 32.12 kB / 1.074 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001797/0.3206, allocations: 0.8434 MB / 1.075 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.3206, allocations: 0 / 1.075 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-05/0.3207, allocations: 12 kB / 1.075 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001841/0.3209, allocations: 64.58 kB / 1.075 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002284/0.3232, allocations: 0.9545 MB / 1.076 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004307/0.3275, allocations: 2.89 MB / 1.079 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001835/0.3294, allocations: 0.5761 MB / 1.079 GB, free: 136 kB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008577/0.3303, allocations: 316.6 kB / 1.08 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001383/0.3304, allocations: 85.11 kB / 1.08 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.3305, allocations: 38.5 kB / 1.08 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=22): time 2.344e-06/0.3305, allocations: 0 / 1.08 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36): time 0.01554/0.346, allocations: 4.029 MB / 1.084 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.3461, allocations: 55.41 kB / 1.084 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000571/0.3467, allocations: 429.6 kB / 1.084 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 7.975e-05/0.3468, allocations: 33.7 kB / 1.084 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.347, allocations: 240.2 kB / 1.084 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.3471, allocations: 126.1 kB / 1.084 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.89e-05/0.3472, allocations: 37.7 kB / 1.085 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.3473, allocations: 350.8 kB / 1.085 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.3485, allocations: 440.5 kB / 1.085 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.3497, allocations: 0.5165 MB / 1.086 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002285/0.352, allocations: 0.9501 MB / 1.087 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.207e-06/0.352, allocations: 0 / 1.087 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.006394/0.3584, allocations: 1.896 MB / 1.089 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.3585, allocations: 151.8 kB / 1.089 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3586, allocations: 4 kB / 1.089 GB, free: 6.262 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004737/0.3633, allocations: 1.024 MB / 1.09 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007151/0.364, allocations: 131.8 kB / 1.09 GB, free: 5.102 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/0.3745, allocations: 6.188 MB / 1.096 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009308/0.3754, allocations: 119.9 kB / 1.096 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.859e-05/0.3755, allocations: 19.98 kB / 1.096 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/0.3755, allocations: 5.875 kB / 1.096 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005464/0.381, allocations: 1.605 MB / 1.098 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.381, allocations: 0 / 1.098 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003337/0.3844, allocations: 0.7469 MB / 1.098 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007814/0.3852, allocations: 143.8 kB / 1.098 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008214/0.3934, allocations: 5.422 MB / 1.104 GB, free: 6.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000935/0.3944, allocations: 108.1 kB / 1.104 GB, free: 6.203 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.024e-05/0.3945, allocations: 19.98 kB / 1.104 GB, free: 6.184 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004733/0.395, allocations: 340.9 kB / 1.104 GB, free: 5.84 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.3951, allocations: 43.53 kB / 1.104 GB, free: 5.797 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005876/0.401, allocations: 1.774 MB / 1.106 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.401, allocations: 4 kB / 1.106 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.401, allocations: 4 kB / 1.106 GB, free: 4 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.4011, allocations: 0 / 1.106 GB, free: 4 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006841/0.4079, allocations: 2.469 MB / 1.108 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.4079, allocations: 0 / 1.108 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004155/0.4084, allocations: 87.94 kB / 1.108 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004171/0.4125, allocations: 0.9417 MB / 1.109 GB, free: 428 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.086e-05/0.4126, allocations: 8 kB / 1.109 GB, free: 420 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009145/0.4218, allocations: 5.863 MB / 1.115 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.4218, allocations: 3.938 kB / 1.115 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005405/0.4272, allocations: 1.733 MB / 1.117 GB, free: 8.512 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003356/0.4276, allocations: 184.6 kB / 1.117 GB, free: 8.312 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.4277, allocations: 11.94 kB / 1.117 GB, free: 8.301 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007101/0.4284, allocations: 95.86 kB / 1.117 GB, free: 8.207 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001923/0.4286, allocations: 35.89 kB / 1.117 GB, free: 8.172 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.322e-05/0.4287, allocations: 11.98 kB / 1.117 GB, free: 8.16 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004734/0.4292, allocations: 331.1 kB / 1.117 GB, free: 7.84 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4292, allocations: 0 / 1.117 GB, free: 7.84 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001112/0.4303, allocations: 260.5 kB / 1.118 GB, free: 7.586 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000211/0.4305, allocations: 115.2 kB / 1.118 GB, free: 7.461 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.006939/0.4375, allocations: 2.522 MB / 1.12 GB, free: 4.887 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/0.4375, allocations: 3.938 kB / 1.12 GB, free: 4.883 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.002648/0.4402, allocations: 0.9616 MB / 1.121 GB, free: 3.895 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009158/0.4411, allocations: 129.4 kB / 1.121 GB, free: 3.773 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.4437, allocations: 1.475 MB / 1.123 GB, free: 2.258 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007461/0.4444, allocations: 0.9412 MB / 1.124 GB, free: 1.289 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.4446, allocations: 47.41 kB / 1.124 GB, free: 1.242 MB / 0.8731 GB Notification: Performance of SimCode: time 8.82e-07/0.4447, allocations: 0 / 1.124 GB, free: 1.242 MB / 0.8731 GB Notification: Performance of Templates: time 0.01945/0.4641, allocations: 13.83 MB / 1.137 GB, free: 3.445 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGridMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches