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.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_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.007868/0.007867, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001804/0.001804, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.377/1.377, allocations: 222.9 MB / 240.5 MB, free: 4.562 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.679/2.679, allocations: 437 MB / 0.7106 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 67.91 kB / 0.8692 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.636/0.6376, allocations: 151.6 MB / 1.017 GB, free: 2.797 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03487/0.6725, allocations: 33.06 MB / 1.05 GB, free: 1.633 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02219/0.6947, allocations: 14.79 MB / 1.064 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003596/0.6984, allocations: 143.2 kB / 1.064 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.009258/0.7077, allocations: 3.398 MB / 1.067 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.008364/0.716, allocations: 2.682 MB / 1.07 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.006136/0.7222, allocations: 2.124 MB / 1.072 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01341/0.7356, allocations: 12.21 MB / 1.084 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01635/0.752, allocations: 10.35 MB / 1.094 GB, free: 3.746 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006889/0.759, allocations: 3.426 MB / 1.098 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007083/0.7661, allocations: 4.104 MB / 1.102 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002278/0.7684, allocations: 488 kB / 1.102 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005344/0.7738, allocations: 1.736 MB / 1.104 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.004616/0.7784, allocations: 2.592 MB / 1.106 GB, free: 7.379 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.006726/0.7852, allocations: 3.115 MB / 1.109 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01156/0.7968, allocations: 9.408 MB / 1.118 GB, free: 10.82 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.7968, allocations: 4 kB / 1.118 GB, free: 10.82 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.256e-06/0.7968, allocations: 0 / 1.118 GB, free: 10.82 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0003943/0.7972, allocations: 0 / 1.118 GB, free: 10.82 MB / 0.8731 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.01786/0.8151, allocations: 5.975 MB / 1.124 GB, free: 4.762 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.8151, allocations: 11.98 kB / 1.124 GB, free: 4.75 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008777/0.8239, allocations: 1.138 MB / 1.125 GB, free: 3.605 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008452/0.8324, allocations: 3.332 MB / 1.129 GB, free: 200 kB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004302/0.8329, allocations: 370.5 kB / 1.129 GB, free: 15.83 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001738/0.8346, allocations: 495.9 kB / 1.129 GB, free: 15.35 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02072/0.8554, allocations: 8.009 MB / 1.137 GB, free: 7.062 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002758/0.8557, allocations: 19.84 kB / 1.137 GB, free: 7.043 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001561/0.8573, allocations: 219.9 kB / 1.138 GB, free: 6.828 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001211/0.8585, allocations: 437.6 kB / 1.138 GB, free: 6.398 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01358/0.8721, allocations: 6.077 MB / 1.144 GB, free: 316 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0491/0.9212, allocations: 35.17 MB / 1.178 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003121/0.9244, allocations: 2.022 MB / 1.18 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002744/0.9272, allocations: 1.869 MB / 1.182 GB, free: 6.051 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001558/0.9274, allocations: 18 kB / 1.182 GB, free: 6.035 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.611e-05/0.9274, allocations: 68.5 kB / 1.182 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=171): time 4.368e-06/0.9274, allocations: 0 / 1.182 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of matching and sorting (n=276): time 0.1529/1.08, allocations: 38.86 MB / 1.22 GB, free: 15 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.603e-05/1.08, allocations: 85.52 kB / 1.22 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004132/1.085, allocations: 2.282 MB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0004868/1.085, allocations: 73.7 kB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001578/1.087, allocations: 2.272 MB / 1.225 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.001094/1.088, allocations: 0.9396 MB / 1.226 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001339/1.089, allocations: 0.5062 MB / 1.226 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.605e-05/1.089, allocations: 305.1 kB / 1.226 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003049/1.092, allocations: 1.977 MB / 1.228 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003575/1.096, allocations: 2.602 MB / 1.231 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006801/1.103, allocations: 4.925 MB / 1.236 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-05/1.103, allocations: 4 kB / 1.236 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01565/1.118, allocations: 7.766 MB / 1.243 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.022e-05/1.119, allocations: 12 kB / 1.243 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.038e-05/1.119, allocations: 16 kB / 1.243 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/1.129, allocations: 3.209 MB / 1.246 GB, free: 3.34 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001766/1.131, allocations: 403.3 kB / 1.247 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6301/1.761, allocations: 31.09 MB / 1.277 GB, free: 195.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002831/1.764, allocations: 164.5 kB / 1.277 GB, free: 195.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003742/1.764, allocations: 104.3 kB / 1.277 GB, free: 195.1 MB / 0.9981 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.003014/1.767, allocations: 1.799 MB / 1.279 GB, free: 194.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007636/1.768, allocations: 334 kB / 1.279 GB, free: 194.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/1.781, allocations: 7.355 MB / 1.287 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-05/1.781, allocations: 31.22 kB / 1.287 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.957e-05/1.781, allocations: 30.44 kB / 1.287 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.721e-05/1.781, allocations: 17.81 kB / 1.287 GB, free: 191.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02068/1.801, allocations: 12.92 MB / 1.299 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.955e-05/1.801, allocations: 10.06 kB / 1.299 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009254/1.802, allocations: 236.3 kB / 1.3 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007863/1.81, allocations: 2.842 MB / 1.302 GB, free: 184.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003524/1.811, allocations: 49.88 kB / 1.302 GB, free: 184.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03213/1.843, allocations: 29.89 MB / 1.332 GB, free: 154.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/1.843, allocations: 15.94 kB / 1.332 GB, free: 154.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/1.853, allocations: 6.883 MB / 1.338 GB, free: 147.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/1.855, allocations: 0.7782 MB / 1.339 GB, free: 146.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000629/1.856, allocations: 59.22 kB / 1.339 GB, free: 146.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001688/1.857, allocations: 171.8 kB / 1.339 GB, free: 146.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007666/1.858, allocations: 249.5 kB / 1.34 GB, free: 146.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001796/1.858, allocations: 80 kB / 1.34 GB, free: 146.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001753/1.86, allocations: 1.525 MB / 1.341 GB, free: 144.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.61e-07/1.86, allocations: 0 / 1.341 GB, free: 144.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005779/1.866, allocations: 1.371 MB / 1.342 GB, free: 143.5 MB / 0.9981 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.0005187/1.866, allocations: 178.8 kB / 1.343 GB, free: 143.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0102/1.877, allocations: 6.89 MB / 1.349 GB, free: 136.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/1.877, allocations: 4 kB / 1.349 GB, free: 136.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006388/1.883, allocations: 4.409 MB / 1.354 GB, free: 131.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004743/1.888, allocations: 1.034 MB / 1.355 GB, free: 130.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0164/1.904, allocations: 13.17 MB / 1.368 GB, free: 117.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003953/1.908, allocations: 3.753 MB / 1.371 GB, free: 113.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007854/1.909, allocations: 171.4 kB / 1.371 GB, free: 113.6 MB / 0.9981 GB Notification: Performance of SimCode: time 7.71e-07/1.909, allocations: 0 / 1.371 GB, free: 113.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.2082/2.117, allocations: 227.3 MB / 1.593 GB, free: 14.36 MB / 1.123 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