Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007099/0.007099, allocations: 96.84 kB / 15.73 MB, free: 6.035 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.001383/0.001383, allocations: 204.3 kB / 16.68 MB, free: 5.961 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.751/2.751, allocations: 437 MB / 0.7105 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002365/0.002365, allocations: 63.91 kB / 1.019 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3907, allocations: 151.6 MB / 1.167 GB, free: 6.852 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02402/0.4148, allocations: 20.25 MB / 1.186 GB, free: 2.516 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01582/0.4307, allocations: 6.445 MB / 1.193 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003603/0.4344, allocations: 91.56 kB / 1.193 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.006946/0.4414, allocations: 2.24 MB / 1.195 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.006075/0.4475, allocations: 1.185 MB / 1.196 GB, free: 8.527 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.004733/0.4523, allocations: 1.274 MB / 1.197 GB, free: 7.254 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.007403/0.4597, allocations: 4.854 MB / 1.202 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008896/0.4686, allocations: 5.583 MB / 1.208 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004063/0.4727, allocations: 2.088 MB / 1.21 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004573/0.4773, allocations: 2.34 MB / 1.212 GB, free: 8.293 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.001509/0.4789, allocations: 436 kB / 1.212 GB, free: 7.867 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003252/0.4821, allocations: 0.9986 MB / 1.213 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.003031/0.4852, allocations: 1.669 MB / 1.215 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.004637/0.4899, allocations: 1.918 MB / 1.217 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.01059/0.5005, allocations: 6.534 MB / 1.223 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 9.338e-06/0.5005, allocations: 0 / 1.223 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.514e-06/0.5005, allocations: 0 / 1.223 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0002955/0.5008, allocations: 0 / 1.223 GB, free: 12.71 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01301/0.5138, allocations: 3.537 MB / 1.227 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 6.122e-05/0.5139, allocations: 12.03 kB / 1.227 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003931/0.5179, allocations: 0.6545 MB / 1.227 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004635/0.5225, allocations: 2.054 MB / 1.229 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001819/0.5228, allocations: 222.3 kB / 1.229 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005842/0.5233, allocations: 296.3 kB / 1.23 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008813/0.5322, allocations: 4.882 MB / 1.235 GB, free: 0.7383 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.533e-05/0.5323, allocations: 15.94 kB / 1.235 GB, free: 0.7227 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003054/0.5326, allocations: 128 kB / 1.235 GB, free: 0.5977 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004624/0.5331, allocations: 233.7 kB / 1.235 GB, free: 376 kB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006583/0.5397, allocations: 3.75 MB / 1.239 GB, free: 12.6 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9024/1.442, allocations: 21.43 MB / 1.259 GB, free: 67.53 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002718/1.445, allocations: 1.302 MB / 1.261 GB, free: 67.35 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001895/1.447, allocations: 1.057 MB / 1.262 GB, free: 66.96 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.993e-05/1.447, allocations: 11.22 kB / 1.262 GB, free: 66.96 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.327e-05/1.447, allocations: 49.05 kB / 1.262 GB, free: 66.91 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=107): time 3.577e-06/1.447, allocations: 1.781 kB / 1.262 GB, free: 66.91 MB / 0.9981 GB Notification: Performance of matching and sorting (n=138): time 0.02725/1.474, allocations: 8.697 MB / 1.27 GB, free: 64.25 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/1.474, allocations: 66.38 kB / 1.27 GB, free: 64.18 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001776/1.476, allocations: 1.135 MB / 1.272 GB, free: 63.73 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001044/1.476, allocations: 47.83 kB / 1.272 GB, free: 63.68 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009529/1.477, allocations: 1.34 MB / 1.273 GB, free: 62.66 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004034/1.478, allocations: 0.4946 MB / 1.273 GB, free: 62.27 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004884/1.478, allocations: 289.8 kB / 1.274 GB, free: 62.13 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.71e-05/1.478, allocations: 302.7 kB / 1.274 GB, free: 61.84 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/1.479, allocations: 0.9163 MB / 1.275 GB, free: 61.49 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/1.481, allocations: 1.326 MB / 1.276 GB, free: 60.66 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003097/1.484, allocations: 2.429 MB / 1.278 GB, free: 59.28 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/1.484, allocations: 2.688 kB / 1.278 GB, free: 59.28 MB / 0.9981 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006432/1.491, allocations: 3.472 MB / 1.282 GB, free: 57.9 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/1.491, allocations: 11 kB / 1.282 GB, free: 57.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.551e-05/1.491, allocations: 12.39 kB / 1.282 GB, free: 57.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003354/1.494, allocations: 1.183 MB / 1.283 GB, free: 57.59 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/1.495, allocations: 256.2 kB / 1.283 GB, free: 57.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01833/1.513, allocations: 13.87 MB / 1.297 GB, free: 49.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001957/1.515, allocations: 99.61 kB / 1.297 GB, free: 49.04 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001624/1.516, allocations: 61.52 kB / 1.297 GB, free: 49.02 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002632/1.518, allocations: 1.109 MB / 1.298 GB, free: 48.51 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004545/1.519, allocations: 172.9 kB / 1.298 GB, free: 48.42 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006084/1.525, allocations: 3.168 MB / 1.301 GB, free: 47.13 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/1.525, allocations: 17.94 kB / 1.301 GB, free: 47.13 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.19e-05/1.525, allocations: 11.06 kB / 1.301 GB, free: 47.13 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/1.525, allocations: 8.594 kB / 1.301 GB, free: 47.13 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/1.536, allocations: 6.252 MB / 1.307 GB, free: 44.54 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/1.536, allocations: 4.469 kB / 1.307 GB, free: 44.54 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005819/1.537, allocations: 156.5 kB / 1.308 GB, free: 44.53 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002835/1.539, allocations: 1.071 MB / 1.309 GB, free: 44.24 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/1.54, allocations: 34.53 kB / 1.309 GB, free: 44.22 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01534/1.555, allocations: 13.53 MB / 1.322 GB, free: 34.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.727e-06/1.555, allocations: 4.438 kB / 1.322 GB, free: 34.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005309/1.56, allocations: 3.166 MB / 1.325 GB, free: 32.91 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001364/1.562, allocations: 434.8 kB / 1.325 GB, free: 32.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005797/1.562, allocations: 31.86 kB / 1.325 GB, free: 32.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/1.564, allocations: 83.52 kB / 1.326 GB, free: 32.52 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004898/1.564, allocations: 128.1 kB / 1.326 GB, free: 32.45 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-05/1.564, allocations: 35.75 kB / 1.326 GB, free: 32.45 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001041/1.565, allocations: 0.7652 MB / 1.326 GB, free: 32.02 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.11e-07/1.565, allocations: 3.938 kB / 1.326 GB, free: 32.02 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002576/1.568, allocations: 0.6572 MB / 1.327 GB, free: 31.96 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002548/1.568, allocations: 149.6 kB / 1.327 GB, free: 31.84 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004633/1.573, allocations: 3.144 MB / 1.33 GB, free: 29.99 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/1.573, allocations: 4.344 kB / 1.33 GB, free: 29.99 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0025/1.575, allocations: 1.957 MB / 1.332 GB, free: 28.73 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002147/1.577, allocations: 0.5032 MB / 1.333 GB, free: 28.48 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00864/1.586, allocations: 5.454 MB / 1.338 GB, free: 24.09 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00179/1.588, allocations: 2.336 MB / 1.34 GB, free: 21.72 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009664/1.589, allocations: 346.1 kB / 1.341 GB, free: 21.38 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/1.589, allocations: 95.42 kB / 1.341 GB, free: 21.28 MB / 0.9981 GB Notification: Performance of SimCode: time 7.32e-07/1.589, allocations: 0 / 1.341 GB, free: 21.28 MB / 0.9981 GB Notification: Performance of Templates: time 0.0495/1.639, allocations: 33.2 MB / 1.373 GB, free: 4.539 MB / 1.014 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches