Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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 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.ThreePhasesBalanced.Lines.Examples.ACLine,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 196 kB / 16.79 MB, free: 6.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.552/1.552, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.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.402/2.402, allocations: 390.2 MB / 0.6649 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 59.91 kB / 0.8125 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6564/0.6578, allocations: 140.4 MB / 0.9496 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01655/0.6743, allocations: 13.96 MB / 0.9632 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01594/0.6903, allocations: 9.396 MB / 0.9724 GB, free: 7.004 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002405/0.6928, allocations: 55.56 kB / 0.9725 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004801/0.6977, allocations: 1.562 MB / 0.974 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.006467/0.7042, allocations: 1.403 MB / 0.9754 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002483/0.7067, allocations: 0.6855 MB / 0.976 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.005003/0.7117, allocations: 3.174 MB / 0.9791 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002414/0.7141, allocations: 1.359 MB / 0.9804 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001971/0.7161, allocations: 0.9277 MB / 0.9814 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002013/0.7181, allocations: 1.152 MB / 0.9825 GB, free: 392 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0003061/0.7185, allocations: 100 kB / 0.9826 GB, free: 292 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00212/0.7206, allocations: 0.889 MB / 0.9834 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0006694/0.7213, allocations: 0.549 MB / 0.984 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.001204/0.7225, allocations: 0.8704 MB / 0.9848 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.002499/0.725, allocations: 2.194 MB / 0.987 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.725, allocations: 0 / 0.987 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.242e-06/0.725, allocations: 0 / 0.987 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 4.262e-05/0.7251, allocations: 0 / 0.987 GB, free: 11.77 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004381/0.7295, allocations: 2.135 MB / 0.9891 GB, free: 9.578 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.7295, allocations: 8.031 kB / 0.9891 GB, free: 9.57 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01107/0.7406, allocations: 2.081 MB / 0.9911 GB, free: 7.484 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003239/0.7439, allocations: 1.201 MB / 0.9923 GB, free: 6.227 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.924e-05/0.744, allocations: 82.73 kB / 0.9923 GB, free: 6.145 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003202/0.7443, allocations: 132 kB / 0.9925 GB, free: 6.016 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006018/0.7503, allocations: 2.678 MB / 0.9951 GB, free: 3.188 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.567e-05/0.7504, allocations: 11.84 kB / 0.9951 GB, free: 3.176 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001866/0.7506, allocations: 55.98 kB / 0.9952 GB, free: 3.121 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005961/0.7512, allocations: 178.1 kB / 0.9953 GB, free: 2.945 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007143/0.7583, allocations: 2.795 MB / 0.9981 GB, free: 144 kB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01609/0.7745, allocations: 10.51 MB / 1.008 GB, free: 5.047 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00645/0.781, allocations: 2.529 MB / 1.011 GB, free: 2.453 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00319/0.7842, allocations: 1.292 MB / 1.012 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 9.329e-05/0.7843, allocations: 13 kB / 1.012 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.706e-05/0.7844, allocations: 39.56 kB / 1.012 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=89): time 4.128e-06/0.7844, allocations: 0 / 1.012 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of matching and sorting (n=131): time 0.04497/0.8294, allocations: 13.35 MB / 1.025 GB, free: 3.527 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.068e-05/0.8295, allocations: 64.72 kB / 1.025 GB, free: 3.449 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0019/0.8314, allocations: 1.113 MB / 1.026 GB, free: 2.32 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001984/0.8316, allocations: 49.7 kB / 1.026 GB, free: 2.266 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005366/0.8322, allocations: 0.7194 MB / 1.027 GB, free: 1.539 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004959/0.8327, allocations: 445.5 kB / 1.027 GB, free: 1.098 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005624/0.8332, allocations: 263.4 kB / 1.028 GB, free: 0.832 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.8334, allocations: 365.9 kB / 1.028 GB, free: 480 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00311/0.8365, allocations: 1.335 MB / 1.029 GB, free: 15.13 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003232/0.8397, allocations: 1.608 MB / 1.031 GB, free: 13.43 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006387/0.8462, allocations: 2.991 MB / 1.034 GB, free: 10.34 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.8462, allocations: 4 kB / 1.034 GB, free: 10.34 MB / 0.795 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.0111/0.8573, allocations: 4.442 MB / 1.038 GB, free: 5.844 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.2e-05/0.8573, allocations: 8 kB / 1.038 GB, free: 5.836 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.8574, allocations: 4 kB / 1.038 GB, free: 5.832 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005402/0.8628, allocations: 1.439 MB / 1.04 GB, free: 4.352 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002015/0.8648, allocations: 439.3 kB / 1.04 GB, free: 3.922 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02617/0.891, allocations: 24.55 MB / 1.064 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002363/0.8934, allocations: 303.6 kB / 1.064 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002864/0.8937, allocations: 59.97 kB / 1.064 GB, free: 9.262 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009946/0.8947, allocations: 445.4 kB / 1.065 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004086/0.8951, allocations: 158.1 kB / 1.065 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01157/0.9067, allocations: 4.457 MB / 1.069 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/0.9068, allocations: 12 kB / 1.069 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.307e-05/0.9068, allocations: 16 kB / 1.069 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.966e-05/0.9068, allocations: 3.984 kB / 1.069 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01512/0.922, allocations: 6.794 MB / 1.076 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.922, allocations: 0 / 1.076 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001701/0.9237, allocations: 387.2 kB / 1.076 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00498/0.9287, allocations: 1.307 MB / 1.078 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002136/0.929, allocations: 39.91 kB / 1.078 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02433/0.9533, allocations: 23.5 MB / 1.101 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.9533, allocations: 4.031 kB / 1.101 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01053/0.9639, allocations: 4.212 MB / 1.105 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.9649, allocations: 455 kB / 1.105 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000397/0.9653, allocations: 27.94 kB / 1.105 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002041/0.9674, allocations: 307.5 kB / 1.105 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004483/0.9678, allocations: 128.7 kB / 1.106 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/0.968, allocations: 47.97 kB / 1.106 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001183/0.9692, allocations: 0.7526 MB / 1.106 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9692, allocations: 3.938 kB / 1.106 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002309/0.9715, allocations: 0.5664 MB / 1.107 GB, free: 11.55 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003896/0.9719, allocations: 139 kB / 1.107 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01062/0.9825, allocations: 5.127 MB / 1.112 GB, free: 6.109 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/0.9826, allocations: 4 kB / 1.112 GB, free: 6.105 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.006779/0.9894, allocations: 3.488 MB / 1.115 GB, free: 2.449 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003054/0.9925, allocations: 0.5034 MB / 1.116 GB, free: 1.953 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009608/1.002, allocations: 4.754 MB / 1.121 GB, free: 13.14 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001605/1.004, allocations: 1.481 MB / 1.122 GB, free: 11.62 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007098/1.004, allocations: 135.3 kB / 1.122 GB, free: 11.49 MB / 0.8887 GB Notification: Performance of SimCode: time 9.01e-07/1.004, allocations: 0 / 1.122 GB, free: 11.49 MB / 0.8887 GB Notification: Performance of Templates: time 0.1106/1.115, allocations: 112.5 MB / 1.232 GB, free: 11.02 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches