Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.481/1.481, allocations: 249.3 MB / 261.8 MB, free: 5.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001375/0.001375, allocations: 172.8 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.575/1.575, allocations: 205.2 MB / 0.572 GB, free: 10.71 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009156/0.0009157, allocations: 86.48 kB / 0.6764 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.082e-05/3.084e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1906/0.1906, allocations: 106.3 MB / 0.8918 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5955/0.7862, allocations: 157.2 MB / 1.045 GB, free: 11.15 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/0.7865, allocations: 98.11 kB / 1.045 GB, free: 11.1 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.08491/0.8714, allocations: 36.92 MB / 1.081 GB, free: 11.98 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.392e-06/0.8715, allocations: 0 / 1.081 GB, free: 11.98 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.579e-05/0.8715, allocations: 23.98 kB / 1.082 GB, free: 11.96 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001487/0.873, allocations: 0.9551 MB / 1.082 GB, free: 11 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.8731, allocations: 12.03 kB / 1.082 GB, free: 10.99 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/0.8745, allocations: 246.5 kB / 1.083 GB, free: 10.75 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008099/0.8753, allocations: 0.5392 MB / 1.083 GB, free: 10.23 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.8753, allocations: 44.38 kB / 1.083 GB, free: 10.21 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.8755, allocations: 69.8 kB / 1.083 GB, free: 10.16 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.8769, allocations: 1.114 MB / 1.084 GB, free: 9.172 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.877, allocations: 11.84 kB / 1.084 GB, free: 9.16 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.212e-05/0.877, allocations: 36.3 kB / 1.084 GB, free: 9.145 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.591e-05/0.8771, allocations: 52.78 kB / 1.085 GB, free: 9.098 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.8782, allocations: 0.7342 MB / 1.085 GB, free: 8.594 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004702/0.8829, allocations: 5.908 MB / 1.091 GB, free: 2.539 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008796/0.8838, allocations: 0.545 MB / 1.092 GB, free: 1.984 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004042/0.8842, allocations: 326.1 kB / 1.092 GB, free: 1.664 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.8842, allocations: 8.422 kB / 1.092 GB, free: 1.656 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.8842, allocations: 39 kB / 1.092 GB, free: 1.605 MB / 0.698 GB Notification: Performance of pre-optimization done (n=47): time 1.603e-06/0.8843, allocations: 0 / 1.092 GB, free: 1.605 MB / 0.698 GB Notification: Performance of matching and sorting (n=48): time 0.001997/0.8863, allocations: 1.237 MB / 1.093 GB, free: 356 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.8863, allocations: 55.84 kB / 1.093 GB, free: 288 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004952/0.8868, allocations: 491.5 kB / 1.094 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.8869, allocations: 37.7 kB / 1.094 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002192/0.8871, allocations: 403.2 kB / 1.094 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.8872, allocations: 165.6 kB / 1.094 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.054e-05/0.8872, allocations: 16 kB / 1.094 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.8874, allocations: 374.8 kB / 1.095 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003613/0.8877, allocations: 261.5 kB / 1.095 GB, free: 14.55 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004649/0.8882, allocations: 456.1 kB / 1.095 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000444/0.8887, allocations: 335.1 kB / 1.096 GB, free: 13.69 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.8887, allocations: 0 / 1.096 GB, free: 13.69 MB / 0.7136 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001583/0.8903, allocations: 1.056 MB / 1.097 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.8903, allocations: 12.12 kB / 1.097 GB, free: 12.6 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.8903, allocations: 4 kB / 1.097 GB, free: 12.6 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000741/0.8911, allocations: 275.2 kB / 1.097 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004286/0.8915, allocations: 119.7 kB / 1.097 GB, free: 12.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005382/0.8969, allocations: 6.584 MB / 1.103 GB, free: 5.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004755/0.8974, allocations: 43.95 kB / 1.103 GB, free: 5.047 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-05/0.8974, allocations: 24 kB / 1.103 GB, free: 5.023 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001315/0.8976, allocations: 148.8 kB / 1.104 GB, free: 4.871 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.383e-05/0.8977, allocations: 75.16 kB / 1.104 GB, free: 4.797 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001466/0.8991, allocations: 0.8767 MB / 1.105 GB, free: 3.891 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.8992, allocations: 8 kB / 1.105 GB, free: 3.883 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.8992, allocations: 4 kB / 1.105 GB, free: 3.879 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.8992, allocations: 4.031 kB / 1.105 GB, free: 3.875 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002446/0.9016, allocations: 1.71 MB / 1.106 GB, free: 2.078 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.9016, allocations: 7.938 kB / 1.106 GB, free: 2.07 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002483/0.9019, allocations: 55.91 kB / 1.106 GB, free: 2.016 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006734/0.9026, allocations: 271.3 kB / 1.107 GB, free: 1.738 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.9026, allocations: 8 kB / 1.107 GB, free: 1.73 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005318/0.9079, allocations: 6.56 MB / 1.113 GB, free: 10.63 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.908, allocations: 12.48 kB / 1.113 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.9094, allocations: 1.036 MB / 1.114 GB, free: 9.5 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002935/0.9097, allocations: 196.1 kB / 1.114 GB, free: 9.289 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.032e-05/0.9098, allocations: 8.141 kB / 1.114 GB, free: 9.281 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003553/0.9102, allocations: 36.09 kB / 1.114 GB, free: 9.246 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.816e-05/0.9103, allocations: 43.88 kB / 1.114 GB, free: 9.203 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.9103, allocations: 20 kB / 1.114 GB, free: 9.184 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.000396/0.9107, allocations: 387.2 kB / 1.115 GB, free: 8.812 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9107, allocations: 4 kB / 1.115 GB, free: 8.809 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0007237/0.9115, allocations: 224 kB / 1.115 GB, free: 8.59 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001546/0.9116, allocations: 120.8 kB / 1.115 GB, free: 8.465 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001737/0.9134, allocations: 1.24 MB / 1.116 GB, free: 7.176 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.9134, allocations: 4 kB / 1.116 GB, free: 7.172 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.9145, allocations: 0.8698 MB / 1.117 GB, free: 6.25 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007937/0.9153, allocations: 205.8 kB / 1.117 GB, free: 6.051 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.9168, allocations: 0.9682 MB / 1.118 GB, free: 5.039 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005091/0.9173, allocations: 1.032 MB / 1.119 GB, free: 3.98 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0003614/0.9177, allocations: 117.9 kB / 1.119 GB, free: 3.863 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.9178, allocations: 39.44 kB / 1.119 GB, free: 3.824 MB / 0.7292 GB Notification: Performance of SimCode: time 1.954e-06/0.9178, allocations: 0 / 1.119 GB, free: 3.824 MB / 0.7292 GB Notification: Performance of Templates: time 0.01653/0.9344, allocations: 10.33 MB / 1.129 GB, free: 9.578 MB / 0.7448 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches