Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001357/0.001358, allocations: 101.1 kB / 16.36 MB, free: 6.012 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.00147/0.00147, allocations: 193.3 kB / 17.3 MB, free: 5.617 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.452/1.452, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.267/2.267, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 65.45 kB / 0.814 GB, free: 32.76 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3109, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03956/0.3505, allocations: 35.13 MB / 0.9854 GB, free: 4.812 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01757/0.3681, allocations: 9.944 MB / 0.9952 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004019/0.3722, allocations: 143.3 kB / 0.9953 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.009981/0.3822, allocations: 3.799 MB / 0.999 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.006616/0.3889, allocations: 2.036 MB / 1.001 GB, free: 4.844 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.006629/0.3955, allocations: 1.961 MB / 1.003 GB, free: 2.887 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01331/0.4089, allocations: 7.982 MB / 1.011 GB, free: 10.88 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01726/0.4262, allocations: 9.526 MB / 1.02 GB, free: 1.23 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007066/0.4333, allocations: 3.369 MB / 1.023 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007319/0.4406, allocations: 3.742 MB / 1.027 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002722/0.4434, allocations: 0.6797 MB / 1.028 GB, free: 9.418 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004906/0.4483, allocations: 1.447 MB / 1.029 GB, free: 7.969 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.004997/0.4533, allocations: 2.612 MB / 1.032 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.008035/0.4614, allocations: 3.104 MB / 1.035 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01619/0.4776, allocations: 10.37 MB / 1.045 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.4777, allocations: 4 kB / 1.045 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.515e-06/0.4777, allocations: 0 / 1.045 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0004073/0.4781, allocations: 0 / 1.045 GB, free: 7.828 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: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01684/0.495, allocations: 5.408 MB / 1.05 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/0.495, allocations: 12.03 kB / 1.05 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006242/0.5013, allocations: 0.9587 MB / 1.051 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007621/0.5089, allocations: 3.178 MB / 1.054 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00032/0.5093, allocations: 357.9 kB / 1.054 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00177/0.5111, allocations: 464.3 kB / 1.055 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01769/0.5288, allocations: 7.91 MB / 1.063 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001613/0.529, allocations: 23.72 kB / 1.063 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001287/0.5303, allocations: 212 kB / 1.063 GB, free: 4.828 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005193/0.5308, allocations: 365.1 kB / 1.063 GB, free: 4.469 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01274/0.5436, allocations: 5.941 MB / 1.069 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6938/1.237, allocations: 35.94 MB / 1.104 GB, free: 99.28 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004228/1.242, allocations: 2.142 MB / 1.106 GB, free: 98.5 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002451/1.244, allocations: 1.479 MB / 1.108 GB, free: 97.93 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000116/1.244, allocations: 20.17 kB / 1.108 GB, free: 97.93 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.687e-05/1.244, allocations: 55.42 kB / 1.108 GB, free: 97.88 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=157): time 4.709e-06/1.244, allocations: 4.953 kB / 1.108 GB, free: 97.88 MB / 0.8575 GB Notification: Performance of matching and sorting (n=160): time 0.0158/1.26, allocations: 7.534 MB / 1.115 GB, free: 94.02 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/1.26, allocations: 72.59 kB / 1.115 GB, free: 93.95 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003379/1.264, allocations: 1.861 MB / 1.117 GB, free: 93.22 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002767/1.264, allocations: 57.7 kB / 1.117 GB, free: 93.16 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001697/1.266, allocations: 2.128 MB / 1.119 GB, free: 91.55 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006597/1.266, allocations: 0.5578 MB / 1.12 GB, free: 91.12 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007879/1.267, allocations: 402.4 kB / 1.12 GB, free: 90.92 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.659e-05/1.267, allocations: 302.9 kB / 1.12 GB, free: 90.62 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001924/1.269, allocations: 1.061 MB / 1.121 GB, free: 90.22 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002118/1.271, allocations: 1.76 MB / 1.123 GB, free: 88.93 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00389/1.275, allocations: 3.051 MB / 1.126 GB, free: 86.96 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-05/1.275, allocations: 7 kB / 1.126 GB, free: 86.96 MB / 0.8575 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006961/1.282, allocations: 3.917 MB / 1.13 GB, free: 85.31 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/1.282, allocations: 15.69 kB / 1.13 GB, free: 85.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-05/1.282, allocations: 26.08 kB / 1.13 GB, free: 85.31 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002565/1.285, allocations: 0.9348 MB / 1.131 GB, free: 84.99 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/1.286, allocations: 431.9 kB / 1.131 GB, free: 84.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01749/1.304, allocations: 22.76 MB / 1.153 GB, free: 65.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002672/1.307, allocations: 122.4 kB / 1.154 GB, free: 65.45 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000214/1.307, allocations: 96.56 kB / 1.154 GB, free: 65.43 MB / 0.8575 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003075/1.31, allocations: 1.642 MB / 1.155 GB, free: 64.54 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006325/1.311, allocations: 255.7 kB / 1.155 GB, free: 64.41 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005212/1.316, allocations: 3.271 MB / 1.159 GB, free: 62.45 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-05/1.316, allocations: 19.64 kB / 1.159 GB, free: 62.45 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/1.316, allocations: 9.469 kB / 1.159 GB, free: 62.45 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/1.316, allocations: 9.344 kB / 1.159 GB, free: 62.44 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.011/1.327, allocations: 7.546 MB / 1.166 GB, free: 57.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/1.327, allocations: 7.938 kB / 1.166 GB, free: 57.9 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008434/1.328, allocations: 214.1 kB / 1.166 GB, free: 57.84 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001938/1.33, allocations: 0.8969 MB / 1.167 GB, free: 57.34 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001032/1.33, allocations: 31.78 kB / 1.167 GB, free: 57.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01451/1.344, allocations: 22.72 MB / 1.189 GB, free: 36.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/1.344, allocations: 11.28 kB / 1.189 GB, free: 36.43 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004718/1.349, allocations: 3.379 MB / 1.193 GB, free: 34.38 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/1.351, allocations: 0.5296 MB / 1.193 GB, free: 33.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003071/1.351, allocations: 34.19 kB / 1.193 GB, free: 33.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00099/1.352, allocations: 98.25 kB / 1.193 GB, free: 33.9 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003869/1.352, allocations: 139.7 kB / 1.193 GB, free: 33.83 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/1.352, allocations: 47.56 kB / 1.194 GB, free: 33.82 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001408/1.354, allocations: 1.227 MB / 1.195 GB, free: 33.12 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/1.354, allocations: 0 / 1.195 GB, free: 33.12 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.003007/1.357, allocations: 0.9023 MB / 1.196 GB, free: 32.22 MB / 0.8575 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002668/1.357, allocations: 161.1 kB / 1.196 GB, free: 32.05 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.005347/1.363, allocations: 4.435 MB / 1.2 GB, free: 27.48 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/1.363, allocations: 4 kB / 1.2 GB, free: 27.48 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.003283/1.366, allocations: 2.991 MB / 1.203 GB, free: 24.33 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003255/1.369, allocations: 0.8141 MB / 1.204 GB, free: 23.54 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/1.38, allocations: 7.583 MB / 1.211 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002575/1.383, allocations: 3.203 MB / 1.214 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001706/1.385, allocations: 0.5293 MB / 1.215 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00033/1.385, allocations: 143.4 kB / 1.215 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of SimCode: time 8.42e-07/1.385, allocations: 0 / 1.215 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of Templates: time 0.06785/1.453, allocations: 40.99 MB / 1.255 GB, free: 3.684 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches