Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001344/0.001344, allocations: 168.7 kB / 15.95 MB, free: 204 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.54/1.54, allocations: 223.3 MB / 240 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.654/2.654, allocations: 437.7 MB / 0.7117 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003692/0.0003692, allocations: 8 kB / 0.8722 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8916/0.892, allocations: 153.8 MB / 1.022 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03862/0.9306, allocations: 31.8 MB / 1.053 GB, free: 196 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02022/0.9509, allocations: 10.9 MB / 1.064 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003257/0.9542, allocations: 135.2 kB / 1.064 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002012/0.9562, allocations: 0.6782 MB / 1.065 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.005146/0.9614, allocations: 1.578 MB / 1.066 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00548/0.9669, allocations: 1.435 MB / 1.068 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.01328/0.9802, allocations: 9.634 MB / 1.077 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02539/1.006, allocations: 12.57 MB / 1.09 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006671/1.012, allocations: 2.65 MB / 1.092 GB, free: 8.457 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007814/1.02, allocations: 3.469 MB / 1.096 GB, free: 4.977 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.002131/1.022, allocations: 328 kB / 1.096 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004768/1.027, allocations: 0.9715 MB / 1.097 GB, free: 3.684 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.00487/1.032, allocations: 2.447 MB / 1.099 GB, free: 1.23 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002793/1.035, allocations: 1.116 MB / 1.1 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01455/1.049, allocations: 9.929 MB / 1.11 GB, free: 6.152 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.364e-05/1.05, allocations: 3.984 kB / 1.11 GB, free: 6.148 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.727e-06/1.05, allocations: 4 kB / 1.11 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0004551/1.05, allocations: 0 / 1.11 GB, free: 6.145 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01344/1.063, allocations: 4.706 MB / 1.115 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/1.064, allocations: 8.562 kB / 1.115 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007034/1.071, allocations: 1.063 MB / 1.116 GB, free: 296 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007266/1.078, allocations: 3.204 MB / 1.119 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/1.078, allocations: 407.1 kB / 1.119 GB, free: 12.63 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001787/1.08, allocations: 0.5428 MB / 1.12 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02325/1.103, allocations: 9.036 MB / 1.128 GB, free: 2.73 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001881/1.104, allocations: 23.69 kB / 1.128 GB, free: 2.707 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007417/1.104, allocations: 236 kB / 1.129 GB, free: 2.477 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004257/1.105, allocations: 354.8 kB / 1.129 GB, free: 2.129 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01687/1.122, allocations: 6.775 MB / 1.136 GB, free: 11.34 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05768/1.179, allocations: 40.17 MB / 1.175 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004512/1.184, allocations: 3.098 MB / 1.178 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00297/1.187, allocations: 1.958 MB / 1.18 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000164/1.187, allocations: 18 kB / 1.18 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/1.187, allocations: 56.56 kB / 1.18 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=179): time 5.009e-06/1.187, allocations: 0 / 1.18 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of matching and sorting (n=182): time 0.02498/1.212, allocations: 9.873 MB / 1.19 GB, free: 220 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/1.212, allocations: 73.41 kB / 1.19 GB, free: 132 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002709/1.215, allocations: 1.515 MB / 1.191 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001578/1.215, allocations: 53.7 kB / 1.191 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001572/1.217, allocations: 2.249 MB / 1.193 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006695/1.217, allocations: 0.6355 MB / 1.194 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/1.218, allocations: 44 kB / 1.194 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002093/1.218, allocations: 390.4 kB / 1.194 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001798/1.22, allocations: 1.183 MB / 1.196 GB, free: 9.969 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002274/1.222, allocations: 1.873 MB / 1.197 GB, free: 7.773 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00235/1.224, allocations: 1.505 MB / 1.199 GB, free: 6.27 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.387e-05/1.224, allocations: 8 kB / 1.199 GB, free: 6.262 MB / 0.9512 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.008065/1.232, allocations: 4.558 MB / 1.203 GB, free: 1.68 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.284e-05/1.232, allocations: 16 kB / 1.203 GB, free: 1.664 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.199e-05/1.233, allocations: 24 kB / 1.203 GB, free: 1.641 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003681/1.236, allocations: 1.579 MB / 1.205 GB, free: 56 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/1.237, allocations: 351.4 kB / 1.205 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02286/1.26, allocations: 17.05 MB / 1.222 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/1.262, allocations: 119.9 kB / 1.222 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003761/1.263, allocations: 104 kB / 1.222 GB, free: 13.91 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (177): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(12,31.2%) 26,(6,66.7%) 24,(6,66.7%) 16,(6,66.7%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003527/1.266, allocations: 1.89 MB / 1.224 GB, free: 12 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005303/1.267, allocations: 229.4 kB / 1.224 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007217/1.274, allocations: 4.071 MB / 1.228 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.966e-05/1.274, allocations: 20 kB / 1.228 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.604e-05/1.274, allocations: 16 kB / 1.228 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.112e-05/1.274, allocations: 11.92 kB / 1.228 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0163/1.29, allocations: 9.447 MB / 1.237 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/1.29, allocations: 4 kB / 1.237 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007916/1.291, allocations: 183.7 kB / 1.238 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003297/1.295, allocations: 1.345 MB / 1.239 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001497/1.295, allocations: 36 kB / 1.239 GB, free: 12.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7433/2.038, allocations: 15.94 MB / 1.254 GB, free: 203.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/2.038, allocations: 8.578 kB / 1.254 GB, free: 203.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01164/2.05, allocations: 4.058 MB / 1.258 GB, free: 203 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002487/2.052, allocations: 0.5303 MB / 1.259 GB, free: 202.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003498/2.053, allocations: 33.34 kB / 1.259 GB, free: 202.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/2.054, allocations: 88.23 kB / 1.259 GB, free: 202.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008541/2.055, allocations: 164 kB / 1.259 GB, free: 202.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/2.055, allocations: 48 kB / 1.259 GB, free: 202.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00226/2.057, allocations: 0.9902 MB / 1.26 GB, free: 202.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.4e-07/2.057, allocations: 0 / 1.26 GB, free: 202.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005455/2.062, allocations: 0.9849 MB / 1.261 GB, free: 202.2 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 (85): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,66.7%) 16,(6,66.7%) 16,(6,66.7%) 24,(6,66.7%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004548/2.063, allocations: 143.5 kB / 1.261 GB, free: 202.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00916/2.072, allocations: 4.294 MB / 1.266 GB, free: 200.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/2.072, allocations: 4.156 kB / 1.266 GB, free: 200.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004948/2.077, allocations: 2.666 MB / 1.268 GB, free: 199 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003942/2.081, allocations: 0.7126 MB / 1.269 GB, free: 198.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01808/2.099, allocations: 10.53 MB / 1.279 GB, free: 193.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004564/2.104, allocations: 3.574 MB / 1.283 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001918/2.106, allocations: 459.1 kB / 1.283 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003029/2.106, allocations: 121.2 kB / 1.283 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of SimCode: time 1.393e-06/2.106, allocations: 0 / 1.283 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.07284/2.179, allocations: 40.83 MB / 1.323 GB, free: 161.8 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches