Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001658/0.001658, allocations: 107.8 kB / 15.99 MB, free: 5.91 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.001736/0.001736, allocations: 192.5 kB / 16.91 MB, free: 5.758 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.36/1.36, allocations: 222.9 MB / 240.6 MB, free: 15.21 MB / 206.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.423/2.423, allocations: 437 MB / 0.7107 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 64.94 kB / 0.8694 GB, free: 2.566 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3025, allocations: 151.6 MB / 1.017 GB, free: 11.01 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03702/0.3396, allocations: 33.04 MB / 1.05 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02324/0.3629, allocations: 14.67 MB / 1.064 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003851/0.3668, allocations: 143.2 kB / 1.064 GB, free: 11 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0096/0.3764, allocations: 3.417 MB / 1.068 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00871/0.3852, allocations: 2.662 MB / 1.07 GB, free: 4.906 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.006238/0.3914, allocations: 2.132 MB / 1.072 GB, free: 2.777 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.5206/0.912, allocations: 8.826 MB / 1.081 GB, free: 18.9 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01579/0.9279, allocations: 11.36 MB / 1.092 GB, free: 17.15 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007183/0.9351, allocations: 4.005 MB / 1.096 GB, free: 16.93 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007662/0.9428, allocations: 4.217 MB / 1.1 GB, free: 16.43 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.003073/0.9459, allocations: 0.7155 MB / 1.101 GB, free: 16.43 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006022/0.9519, allocations: 1.717 MB / 1.102 GB, free: 16.43 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.005916/0.9579, allocations: 2.838 MB / 1.105 GB, free: 16.22 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.00933/0.9672, allocations: 3.389 MB / 1.108 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01584/0.9831, allocations: 9.478 MB / 1.118 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.9831, allocations: 0 / 1.118 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.054e-06/0.9831, allocations: 1.344 kB / 1.118 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0004466/0.9836, allocations: 0 / 1.118 GB, free: 12.6 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01984/1.003, allocations: 5.983 MB / 1.124 GB, free: 9.398 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/1.004, allocations: 13.61 kB / 1.124 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009014/1.013, allocations: 1.136 MB / 1.125 GB, free: 9.066 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00844/1.021, allocations: 3.325 MB / 1.128 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004081/1.021, allocations: 372.8 kB / 1.128 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002318/1.024, allocations: 0.4899 MB / 1.129 GB, free: 7.199 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01891/1.043, allocations: 8.007 MB / 1.137 GB, free: 2.68 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001608/1.043, allocations: 22.89 kB / 1.137 GB, free: 2.672 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000893/1.044, allocations: 214.6 kB / 1.137 GB, free: 2.52 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009965/1.045, allocations: 439.7 kB / 1.137 GB, free: 2.395 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/1.056, allocations: 6.095 MB / 1.143 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04112/1.097, allocations: 35.15 MB / 1.177 GB, free: 12.32 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002794/1.1, allocations: 2.024 MB / 1.179 GB, free: 10.29 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002444/1.102, allocations: 1.858 MB / 1.181 GB, free: 8.426 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001177/1.103, allocations: 28.88 kB / 1.181 GB, free: 8.402 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.125e-05/1.103, allocations: 52.56 kB / 1.181 GB, free: 8.34 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=171): time 4.048e-06/1.103, allocations: 0 / 1.181 GB, free: 8.34 MB / 0.8887 GB Notification: Performance of matching and sorting (n=276): time 0.1483/1.251, allocations: 38.89 MB / 1.219 GB, free: 1.562 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/1.251, allocations: 77.58 kB / 1.219 GB, free: 1.473 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003701/1.255, allocations: 2.278 MB / 1.222 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0004555/1.255, allocations: 73.7 kB / 1.222 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.00154/1.257, allocations: 2.283 MB / 1.224 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.00105/1.258, allocations: 0.9346 MB / 1.225 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001017/1.259, allocations: 0.5062 MB / 1.225 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001109/1.259, allocations: 301.1 kB / 1.226 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002979/1.262, allocations: 1.97 MB / 1.228 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003377/1.265, allocations: 2.604 MB / 1.23 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006773/1.272, allocations: 4.932 MB / 1.235 GB, free: 1.09 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-05/1.272, allocations: 11.94 kB / 1.235 GB, free: 1.078 MB / 0.9356 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01601/1.288, allocations: 7.749 MB / 1.242 GB, free: 9.262 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.444e-05/1.288, allocations: 12 kB / 1.242 GB, free: 9.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-05/1.288, allocations: 16 kB / 1.242 GB, free: 9.234 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009821/1.298, allocations: 3.249 MB / 1.246 GB, free: 5.973 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/1.3, allocations: 407.3 kB / 1.246 GB, free: 5.574 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04882/1.349, allocations: 33.88 MB / 1.279 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003534/1.353, allocations: 163.9 kB / 1.279 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006218/1.353, allocations: 115.9 kB / 1.279 GB, free: 2.59 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004236/1.357, allocations: 1.795 MB / 1.281 GB, free: 0.7852 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001095/1.359, allocations: 332.1 kB / 1.281 GB, free: 468 kB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01531/1.374, allocations: 7.37 MB / 1.289 GB, free: 9.047 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.93e-05/1.374, allocations: 28 kB / 1.289 GB, free: 9.02 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-05/1.374, allocations: 28 kB / 1.289 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.483e-05/1.374, allocations: 11.95 kB / 1.289 GB, free: 8.98 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02701/1.401, allocations: 12.92 MB / 1.301 GB, free: 11.93 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.738e-05/1.401, allocations: 8 kB / 1.301 GB, free: 11.92 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/1.402, allocations: 234.2 kB / 1.302 GB, free: 11.69 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008942/1.411, allocations: 2.885 MB / 1.304 GB, free: 8.789 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004581/1.412, allocations: 51.28 kB / 1.304 GB, free: 8.742 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04488/1.457, allocations: 32.69 MB / 1.336 GB, free: 7.211 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.198e-05/1.457, allocations: 11.94 kB / 1.336 GB, free: 7.199 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01401/1.471, allocations: 6.89 MB / 1.343 GB, free: 96 kB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002453/1.473, allocations: 0.7744 MB / 1.344 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001175/1.474, allocations: 63.92 kB / 1.344 GB, free: 15.23 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002511/1.477, allocations: 163.8 kB / 1.344 GB, free: 15.07 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009304/1.478, allocations: 253.4 kB / 1.344 GB, free: 14.83 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003198/1.478, allocations: 76 kB / 1.344 GB, free: 14.75 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.002832/1.481, allocations: 1.529 MB / 1.346 GB, free: 13.22 MB / 1.061 GB Notification: Performance of sort global known variables: time 4.91e-07/1.481, allocations: 0 / 1.346 GB, free: 13.22 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.006507/1.488, allocations: 1.371 MB / 1.347 GB, free: 11.85 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007909/1.488, allocations: 171 kB / 1.347 GB, free: 11.67 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.01656/1.505, allocations: 8.38 MB / 1.356 GB, free: 3.195 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.795e-05/1.505, allocations: 6.094 kB / 1.356 GB, free: 3.191 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.00886/1.514, allocations: 4.405 MB / 1.36 GB, free: 14.71 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006211/1.52, allocations: 1.11 MB / 1.361 GB, free: 13.65 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02563/1.546, allocations: 13.17 MB / 1.374 GB, free: 400 kB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006207/1.552, allocations: 3.757 MB / 1.378 GB, free: 12.6 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008004/1.553, allocations: 171.4 kB / 1.378 GB, free: 12.43 MB / 1.092 GB Notification: Performance of SimCode: time 5.41e-07/1.553, allocations: 0 / 1.378 GB, free: 12.43 MB / 1.092 GB Notification: Performance of Templates: time 0.7331/2.286, allocations: 227.3 MB / 1.6 GB, free: 398.8 MB / 1.232 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches