Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_L,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_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,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_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 105.3 kB / 16.27 MB, free: 6.414 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.001843/0.001843, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.522/1.522, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.659/2.659, allocations: 437.1 MB / 0.7111 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 64.16 kB / 0.8699 GB, free: 2.176 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.3346, allocations: 151.6 MB / 1.018 GB, free: 10.62 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.008955/0.3436, allocations: 6.148 MB / 1.024 GB, free: 4.445 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00568/0.3494, allocations: 3.184 MB / 1.027 GB, free: 1.25 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006013/0.35, allocations: 27.81 kB / 1.027 GB, free: 1.223 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002571/0.3527, allocations: 0.9314 MB / 1.028 GB, free: 300 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001494/0.3542, allocations: 477.5 kB / 1.028 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.3556, allocations: 0.491 MB / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001523/0.3571, allocations: 1.104 MB / 1.03 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001027/0.3582, allocations: 0.6429 MB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006857/0.3589, allocations: 434.4 kB / 1.031 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006355/0.3595, allocations: 474.1 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.3596, allocations: 56 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009996/0.3606, allocations: 491 kB / 1.032 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003145/0.361, allocations: 291.2 kB / 1.032 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000449/0.3614, allocations: 398 kB / 1.033 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.3629, allocations: 1.168 MB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.363, allocations: 0 / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.523e-06/0.363, allocations: 0 / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.149e-05/0.363, allocations: 3.938 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001782/0.3648, allocations: 1.06 MB / 1.035 GB, free: 9.191 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.3648, allocations: 12.92 kB / 1.035 GB, free: 9.18 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001572/0.3664, allocations: 219.6 kB / 1.035 GB, free: 8.965 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000881/0.3673, allocations: 0.5375 MB / 1.036 GB, free: 8.383 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.363e-05/0.3674, allocations: 49.67 kB / 1.036 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.3675, allocations: 68.34 kB / 1.036 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.3691, allocations: 1.034 MB / 1.037 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.432e-05/0.3691, allocations: 7.938 kB / 1.037 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.38e-05/0.3692, allocations: 31.97 kB / 1.037 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-05/0.3693, allocations: 69.27 kB / 1.037 GB, free: 7.016 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.3704, allocations: 0.6957 MB / 1.038 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005772/0.3762, allocations: 5.756 MB / 1.043 GB, free: 140 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009302/0.3772, allocations: 0.591 MB / 1.044 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008356/0.378, allocations: 420.6 kB / 1.044 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.781e-05/0.3781, allocations: 4 kB / 1.044 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.3781, allocations: 39.25 kB / 1.044 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=41): time 4.539e-06/0.3781, allocations: 0 / 1.044 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=42): time 0.004812/0.383, allocations: 2.063 MB / 1.046 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.383, allocations: 59.34 kB / 1.046 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005479/0.3836, allocations: 458.8 kB / 1.047 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.128e-05/0.3836, allocations: 37.7 kB / 1.047 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002997/0.3839, allocations: 387 kB / 1.047 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.3841, allocations: 153.9 kB / 1.047 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.3843, allocations: 114.2 kB / 1.047 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001841/0.3845, allocations: 358.8 kB / 1.048 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003818/0.3848, allocations: 249.2 kB / 1.048 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005478/0.3854, allocations: 461 kB / 1.048 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.3864, allocations: 0.7478 MB / 1.049 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3864, allocations: 4 kB / 1.049 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001973/0.3884, allocations: 1.069 MB / 1.05 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.3885, allocations: 8 kB / 1.05 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.3885, allocations: 8 kB / 1.05 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.3896, allocations: 335.8 kB / 1.05 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003184/0.3899, allocations: 95.83 kB / 1.051 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0082/0.3981, allocations: 7.525 MB / 1.058 GB, free: 24 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005798/0.3987, allocations: 32.03 kB / 1.058 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-05/0.3988, allocations: 28 kB / 1.058 GB, free: 15.96 MB / 0.8419 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004277/0.3992, allocations: 245.5 kB / 1.058 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.3993, allocations: 67.17 kB / 1.058 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/0.4012, allocations: 0.9199 MB / 1.059 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.4012, allocations: 4 kB / 1.059 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4012, allocations: 4 kB / 1.059 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.4012, allocations: 3.984 kB / 1.059 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002827/0.4041, allocations: 1.713 MB / 1.061 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.4041, allocations: 0 / 1.061 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001821/0.4043, allocations: 39.97 kB / 1.061 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009899/0.4053, allocations: 331.4 kB / 1.061 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.991e-05/0.4053, allocations: 8 kB / 1.061 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007933/0.4132, allocations: 7.506 MB / 1.069 GB, free: 4.449 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.4133, allocations: 3.938 kB / 1.069 GB, free: 4.445 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.4151, allocations: 1.007 MB / 1.07 GB, free: 3.391 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002635/0.4154, allocations: 184.4 kB / 1.07 GB, free: 3.191 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.961e-05/0.4155, allocations: 12 kB / 1.07 GB, free: 3.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.4157, allocations: 19.97 kB / 1.07 GB, free: 3.16 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.4159, allocations: 35.95 kB / 1.07 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.4159, allocations: 16 kB / 1.07 GB, free: 3.109 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003596/0.4163, allocations: 310.9 kB / 1.07 GB, free: 2.809 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4163, allocations: 0 / 1.07 GB, free: 2.809 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007669/0.4171, allocations: 203.9 kB / 1.07 GB, free: 2.609 MB / 0.8419 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,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.0001533/0.4172, allocations: 111.2 kB / 1.07 GB, free: 2.492 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00203/0.4192, allocations: 1.242 MB / 1.072 GB, free: 1.199 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4193, allocations: 0 / 1.072 GB, free: 1.199 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001274/0.4205, allocations: 0.8741 MB / 1.072 GB, free: 280 kB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.4216, allocations: 201.6 kB / 1.073 GB, free: 88 kB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.438/0.8596, allocations: 1.317 MB / 1.074 GB, free: 59.49 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006145/0.8602, allocations: 0.9921 MB / 1.075 GB, free: 58.79 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.8604, allocations: 42.44 kB / 1.075 GB, free: 58.78 MB / 0.8419 GB Notification: Performance of SimCode: time 1.062e-06/0.8604, allocations: 0 / 1.075 GB, free: 58.78 MB / 0.8419 GB Notification: Performance of Templates: time 0.03335/0.8937, allocations: 18.67 MB / 1.093 GB, free: 56.75 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches