Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.ACLine,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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 102 kB / 16.37 MB, free: 6.441 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.001182/0.001182, allocations: 195.3 kB / 17.31 MB, free: 5.812 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.417/1.417, 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 11.0.0-master/package.mo): time 2.542/2.542, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 68.44 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3591, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.03377/0.3929, allocations: 30.77 MB / 1.057 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02198/0.4149, allocations: 13.6 MB / 1.07 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003388/0.4184, allocations: 143.2 kB / 1.07 GB, free: 5.402 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.008737/0.4272, allocations: 3.201 MB / 1.073 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.4991/0.9263, allocations: 2.651 MB / 1.076 GB, free: 18.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005734/0.932, allocations: 2.003 MB / 1.078 GB, free: 18.82 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01206/0.9441, allocations: 7.628 MB / 1.085 GB, free: 18.81 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01231/0.9564, allocations: 8.224 MB / 1.093 GB, free: 17.25 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006339/0.9628, allocations: 3.41 MB / 1.097 GB, free: 17.02 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005641/0.9685, allocations: 3.383 MB / 1.1 GB, free: 16.59 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001184/0.9697, allocations: 0.5952 MB / 1.101 GB, free: 16.59 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003792/0.9735, allocations: 1.5 MB / 1.102 GB, free: 16.59 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.002769/0.9763, allocations: 2.363 MB / 1.104 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.004021/0.9803, allocations: 2.884 MB / 1.107 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01165/0.992, allocations: 9.457 MB / 1.116 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.992, allocations: 3.938 kB / 1.116 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.565e-06/0.992, allocations: 0 / 1.116 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0002516/0.9923, allocations: 1.969 kB / 1.116 GB, free: 11.06 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: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.01097/1.003, allocations: 5.135 MB / 1.121 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/1.003, allocations: 12.23 kB / 1.121 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005964/1.009, allocations: 1 MB / 1.122 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007687/1.017, allocations: 3.067 MB / 1.125 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002786/1.017, allocations: 319.4 kB / 1.126 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001476/1.019, allocations: 421.1 kB / 1.126 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01466/1.033, allocations: 6.795 MB / 1.133 GB, free: 2.793 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/1.034, allocations: 22.62 kB / 1.133 GB, free: 2.785 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005022/1.034, allocations: 189.8 kB / 1.133 GB, free: 2.656 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008024/1.035, allocations: 373.5 kB / 1.133 GB, free: 2.547 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00908/1.044, allocations: 5.112 MB / 1.138 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03555/1.08, allocations: 30.51 MB / 1.168 GB, free: 4.016 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002015/1.082, allocations: 1.383 MB / 1.169 GB, free: 2.625 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001623/1.083, allocations: 1.331 MB / 1.171 GB, free: 1.297 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 9.468e-05/1.083, allocations: 20.97 kB / 1.171 GB, free: 1.277 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.651e-05/1.083, allocations: 47.81 kB / 1.171 GB, free: 1.223 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=130): time 3.366e-06/1.083, allocations: 3.938 kB / 1.171 GB, free: 1.219 MB / 0.8731 GB Notification: Performance of matching and sorting (n=199): time 0.08306/1.167, allocations: 23.07 MB / 1.193 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/1.167, allocations: 73.41 kB / 1.193 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003082/1.17, allocations: 2.062 MB / 1.195 GB, free: 7.992 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0003693/1.17, allocations: 61.7 kB / 1.195 GB, free: 7.926 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001325/1.171, allocations: 2.014 MB / 1.197 GB, free: 5.895 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007833/1.172, allocations: 0.6781 MB / 1.198 GB, free: 5.223 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007382/1.173, allocations: 408.2 kB / 1.198 GB, free: 4.816 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001111/1.173, allocations: 305.1 kB / 1.199 GB, free: 4.516 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/1.175, allocations: 1.43 MB / 1.2 GB, free: 3.082 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002374/1.178, allocations: 2.01 MB / 1.202 GB, free: 0.8242 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004679/1.182, allocations: 3.704 MB / 1.206 GB, free: 12.9 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.264e-05/1.182, allocations: 8 kB / 1.206 GB, free: 12.89 MB / 0.92 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01086/1.193, allocations: 5.65 MB / 1.211 GB, free: 7.176 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/1.193, allocations: 15.98 kB / 1.211 GB, free: 7.16 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-05/1.193, allocations: 23.94 kB / 1.211 GB, free: 7.137 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00667/1.2, allocations: 2.088 MB / 1.213 GB, free: 4.996 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/1.202, allocations: 379.1 kB / 1.214 GB, free: 4.629 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03902/1.241, allocations: 38.43 MB / 1.251 GB, free: 11.72 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003124/1.244, allocations: 127.9 kB / 1.251 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002226/1.244, allocations: 88 kB / 1.251 GB, free: 11.51 MB / 0.9669 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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.003788/1.248, allocations: 1.516 MB / 1.253 GB, free: 9.984 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005653/1.248, allocations: 280.1 kB / 1.253 GB, free: 9.711 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009577/1.258, allocations: 5.215 MB / 1.258 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.009e-05/1.258, allocations: 23.94 kB / 1.258 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.234e-05/1.258, allocations: 16 kB / 1.258 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.749e-05/1.258, allocations: 11.95 kB / 1.258 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01743/1.275, allocations: 9.672 MB / 1.268 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.756e-05/1.276, allocations: 12 kB / 1.268 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008367/1.276, allocations: 219.7 kB / 1.268 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005619/1.282, allocations: 1.828 MB / 1.27 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001772/1.282, allocations: 44 kB / 1.27 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03386/1.316, allocations: 37.44 MB / 1.306 GB, free: 472 kB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/1.316, allocations: 11.94 kB / 1.306 GB, free: 460 kB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008879/1.325, allocations: 4.918 MB / 1.311 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001824/1.327, allocations: 0.6108 MB / 1.312 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003858/1.327, allocations: 43.98 kB / 1.312 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001356/1.329, allocations: 127.8 kB / 1.312 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006984/1.329, allocations: 189.5 kB / 1.312 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/1.329, allocations: 63.94 kB / 1.312 GB, free: 10.33 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002234/1.332, allocations: 1.374 MB / 1.314 GB, free: 8.945 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.11e-07/1.332, allocations: 0 / 1.314 GB, free: 8.945 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.004878/1.337, allocations: 1.055 MB / 1.315 GB, free: 7.891 MB / 1.029 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003857/1.337, allocations: 168.3 kB / 1.315 GB, free: 7.719 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.009591/1.347, allocations: 6.297 MB / 1.321 GB, free: 1.191 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/1.347, allocations: 192 / 1.321 GB, free: 1.191 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.006521/1.353, allocations: 4.389 MB / 1.325 GB, free: 12.58 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004339/1.358, allocations: 0.9802 MB / 1.326 GB, free: 11.64 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/1.372, allocations: 8.063 MB / 1.334 GB, free: 3.504 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003403/1.376, allocations: 3.125 MB / 1.337 GB, free: 352 kB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001939/1.378, allocations: 0.5159 MB / 1.338 GB, free: 15.82 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003535/1.378, allocations: 151.4 kB / 1.338 GB, free: 15.68 MB / 1.061 GB Notification: Performance of SimCode: time 1.052e-06/1.378, allocations: 0 / 1.338 GB, free: 15.68 MB / 1.061 GB Notification: Performance of Templates: time 0.09645/1.475, allocations: 57.71 MB / 1.394 GB, free: 6.934 MB / 1.107 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches