Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.ACLineMatrix_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01154/0.01154, allocations: 173.1 kB / 16.26 MB, free: 6.613 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.511/1.511, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.81/2.81, allocations: 462.7 MB / 0.7364 GB, free: 228 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003851, allocations: 11.25 kB / 0.9028 GB, free: 36.76 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3398, allocations: 159.6 MB / 1.059 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.0119/0.3517, allocations: 9.613 MB / 1.068 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006673/0.3585, allocations: 3.139 MB / 1.071 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001186/0.3597, allocations: 27.88 kB / 1.071 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000874/0.3606, allocations: 178.6 kB / 1.071 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00302/0.3636, allocations: 0.712 MB / 1.072 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002598/0.3663, allocations: 0.6392 MB / 1.073 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.006145/0.3724, allocations: 4.478 MB / 1.077 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006267/0.3787, allocations: 3.15 MB / 1.08 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00262/0.3813, allocations: 0.9417 MB / 1.081 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003896/0.3853, allocations: 1.464 MB / 1.082 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0006931/0.386, allocations: 112 kB / 1.083 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001752/0.3877, allocations: 459.2 kB / 1.083 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001913/0.3897, allocations: 0.9275 MB / 1.084 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002472/0.3921, allocations: 0.9657 MB / 1.085 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.00485/0.397, allocations: 3.524 MB / 1.088 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.397, allocations: 0 / 1.088 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.905e-06/0.397, allocations: 0 / 1.088 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001387/0.3972, allocations: 8 kB / 1.088 GB, free: 6.957 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: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.004928/0.4021, allocations: 1.76 MB / 1.09 GB, free: 5.141 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.4022, allocations: 8.031 kB / 1.09 GB, free: 5.133 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009292/0.4115, allocations: 1.313 MB / 1.091 GB, free: 3.816 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00273/0.4142, allocations: 1.263 MB / 1.093 GB, free: 2.512 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.4144, allocations: 115.4 kB / 1.093 GB, free: 2.398 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004345/0.4148, allocations: 144.3 kB / 1.093 GB, free: 2.258 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005675/0.4205, allocations: 3.445 MB / 1.096 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.553e-05/0.4206, allocations: 7.938 kB / 1.096 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002158/0.4208, allocations: 63.97 kB / 1.096 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002647/0.4211, allocations: 203.1 kB / 1.096 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005032/0.4261, allocations: 3.124 MB / 1.099 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0179/0.444, allocations: 13.58 MB / 1.113 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002584/0.4466, allocations: 1.727 MB / 1.114 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001979/0.4486, allocations: 1.44 MB / 1.116 GB, free: 9.676 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 7.52e-05/0.4487, allocations: 9 kB / 1.116 GB, free: 9.668 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.754e-05/0.4488, allocations: 43.56 kB / 1.116 GB, free: 9.617 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=104): time 3.667e-06/0.4488, allocations: 0 / 1.116 GB, free: 9.617 MB / 0.8731 GB Notification: Performance of matching and sorting (n=183): time 0.1476/0.5964, allocations: 35.96 MB / 1.151 GB, free: 5.527 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.579e-05/0.5965, allocations: 69.41 kB / 1.151 GB, free: 5.445 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00177/0.5982, allocations: 1.054 MB / 1.152 GB, free: 4.367 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0004034/0.5987, allocations: 53.7 kB / 1.152 GB, free: 4.309 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005812/0.5993, allocations: 0.7912 MB / 1.153 GB, free: 3.504 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.000695/0.6, allocations: 0.62 MB / 1.153 GB, free: 2.875 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/0.6003, allocations: 153.6 kB / 1.154 GB, free: 2.719 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001939/0.6005, allocations: 305.1 kB / 1.154 GB, free: 2.418 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002804/0.6033, allocations: 1.932 MB / 1.156 GB, free: 496 kB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003153/0.6065, allocations: 2.296 MB / 1.158 GB, free: 14.06 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007074/0.6136, allocations: 4.391 MB / 1.162 GB, free: 9.547 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.732e-05/0.6137, allocations: 0 / 1.162 GB, free: 9.547 MB / 0.92 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.02341/0.6371, allocations: 9.02 MB / 1.171 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.6372, allocations: 15.88 kB / 1.171 GB, free: 492 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.222e-05/0.6372, allocations: 8.656 kB / 1.171 GB, free: 484 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01816/0.6554, allocations: 4.981 MB / 1.176 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.6564, allocations: 191.6 kB / 1.176 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05908/0.7155, allocations: 35.15 MB / 1.211 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002228/0.7178, allocations: 103.9 kB / 1.211 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002654/0.7181, allocations: 71.98 kB / 1.211 GB, free: 7.406 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (105): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(8,16,100.0%), (8,16,100.0%), (8,38,100.0%), (8,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001587/0.7197, allocations: 0.7979 MB / 1.212 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003965/0.7201, allocations: 142.2 kB / 1.212 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02165/0.7418, allocations: 8.894 MB / 1.22 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.568e-05/0.7418, allocations: 20 kB / 1.22 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.861e-05/0.7419, allocations: 28 kB / 1.22 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.24e-05/0.742, allocations: 15.95 kB / 1.22 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02879/0.7708, allocations: 13.26 MB / 1.233 GB, free: 48 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.111e-05/0.7709, allocations: 7.938 kB / 1.233 GB, free: 40 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005412/0.7714, allocations: 119.8 kB / 1.233 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01745/0.7889, allocations: 4.759 MB / 1.238 GB, free: 11.15 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004529/0.7894, allocations: 32 kB / 1.238 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6949/1.484, allocations: 31.44 MB / 1.269 GB, free: 172.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/1.484, allocations: 4.969 kB / 1.269 GB, free: 172.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02222/1.507, allocations: 8.413 MB / 1.277 GB, free: 171.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001366/1.508, allocations: 0.6092 MB / 1.278 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003124/1.508, allocations: 35.03 kB / 1.278 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/1.51, allocations: 92.62 kB / 1.278 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009779/1.511, allocations: 161.5 kB / 1.278 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/1.511, allocations: 48.64 kB / 1.278 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00107/1.512, allocations: 0.7409 MB / 1.279 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.5e-07/1.512, allocations: 0 / 1.279 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003969/1.516, allocations: 1.003 MB / 1.28 GB, free: 171.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (66): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(8,16,100.0%), (8,38,100.0%), (8,8,100.0%), (14,24,80.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003715/1.516, allocations: 149.2 kB / 1.28 GB, free: 171 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01051/1.527, allocations: 5.828 MB / 1.286 GB, free: 168.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/1.527, allocations: 2.75 kB / 1.286 GB, free: 168.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.008095/1.535, allocations: 3.797 MB / 1.289 GB, free: 167 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002137/1.537, allocations: 230.8 kB / 1.289 GB, free: 166.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007015/1.544, allocations: 5.816 MB / 1.295 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001358/1.546, allocations: 1.859 MB / 1.297 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000807/1.546, allocations: 351.3 kB / 1.297 GB, free: 163.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/1.547, allocations: 66.27 kB / 1.297 GB, free: 163.1 MB / 0.9981 GB Notification: Performance of SimCode: time 6.92e-07/1.547, allocations: 0 / 1.297 GB, free: 163.1 MB / 0.9981 GB Notification: Performance of Templates: time 0.07076/1.617, allocations: 55.48 MB / 1.352 GB, free: 112.4 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches