Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.OnePhase.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_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.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_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001544/0.001544, allocations: 192.9 kB / 16.14 MB, free: 6.719 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.648/1.648, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.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.672/2.672, allocations: 437 MB / 0.7099 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 67.89 kB / 0.8685 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7263/0.7276, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008264/0.7359, allocations: 6.746 MB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005266/0.7412, allocations: 3.048 MB / 1.026 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004379/0.7416, allocations: 19.88 kB / 1.026 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002202/0.7439, allocations: 0.8953 MB / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001143/0.745, allocations: 481.7 kB / 1.028 GB, free: 7.562 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.7461, allocations: 383.2 kB / 1.028 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001618/0.7478, allocations: 1.595 MB / 1.029 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009725/0.7487, allocations: 0.6423 MB / 1.03 GB, free: 4.945 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006369/0.7494, allocations: 426.2 kB / 1.03 GB, free: 4.527 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006697/0.7501, allocations: 0.5176 MB / 1.031 GB, free: 4.008 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.894e-05/0.7502, allocations: 48 kB / 1.031 GB, free: 3.961 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008515/0.751, allocations: 459.1 kB / 1.031 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002841/0.7513, allocations: 287.1 kB / 1.032 GB, free: 3.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0004161/0.7517, allocations: 421.8 kB / 1.032 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001218/0.753, allocations: 1.211 MB / 1.033 GB, free: 1.602 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.753, allocations: 3.938 kB / 1.033 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.593e-06/0.753, allocations: 0 / 1.033 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.095e-05/0.753, allocations: 0 / 1.033 GB, free: 1.598 MB / 0.7794 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.002042/0.755, allocations: 1.155 MB / 1.034 GB, free: 404 kB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.7551, allocations: 11.98 kB / 1.034 GB, free: 392 kB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00158/0.7567, allocations: 243.6 kB / 1.035 GB, free: 148 kB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000855/0.7576, allocations: 0.5491 MB / 1.035 GB, free: 15.55 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.461e-05/0.7576, allocations: 49.69 kB / 1.035 GB, free: 15.5 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.975e-05/0.7577, allocations: 60.36 kB / 1.035 GB, free: 15.45 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.7594, allocations: 1.085 MB / 1.036 GB, free: 14.25 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.124e-05/0.7594, allocations: 3.938 kB / 1.036 GB, free: 14.25 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.268e-05/0.7595, allocations: 39.98 kB / 1.036 GB, free: 14.21 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001542/0.7596, allocations: 85.25 kB / 1.037 GB, free: 14.13 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.7607, allocations: 0.7465 MB / 1.037 GB, free: 13.38 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00576/0.7665, allocations: 5.905 MB / 1.043 GB, free: 7.043 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.7675, allocations: 0.5516 MB / 1.044 GB, free: 6.484 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004452/0.768, allocations: 334 kB / 1.044 GB, free: 6.156 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-05/0.768, allocations: 8.438 kB / 1.044 GB, free: 6.148 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.7681, allocations: 35 kB / 1.044 GB, free: 6.105 MB / 0.795 GB Notification: Performance of pre-optimization done (n=47): time 2.535e-06/0.7681, allocations: 4 kB / 1.044 GB, free: 6.102 MB / 0.795 GB Notification: Performance of matching and sorting (n=48): time 0.004207/0.7723, allocations: 1.986 MB / 1.046 GB, free: 4.02 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/0.7724, allocations: 59.84 kB / 1.046 GB, free: 3.949 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008018/0.7732, allocations: 0.5547 MB / 1.046 GB, free: 3.387 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.447e-05/0.7732, allocations: 29.7 kB / 1.046 GB, free: 3.352 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000345/0.7736, allocations: 414.9 kB / 1.047 GB, free: 2.938 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.7738, allocations: 173.6 kB / 1.047 GB, free: 2.766 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002348/0.774, allocations: 122.5 kB / 1.047 GB, free: 2.641 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000234/0.7742, allocations: 386.7 kB / 1.048 GB, free: 2.254 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005014/0.7747, allocations: 269.9 kB / 1.048 GB, free: 1.988 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005564/0.7753, allocations: 497.5 kB / 1.048 GB, free: 1.406 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.7764, allocations: 0.8093 MB / 1.049 GB, free: 0.5039 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.7765, allocations: 0 / 1.049 GB, free: 0.5039 MB / 0.795 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001892/0.7783, allocations: 1.087 MB / 1.05 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.7784, allocations: 9.562 kB / 1.05 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.7784, allocations: 8 kB / 1.05 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008325/0.7792, allocations: 271.8 kB / 1.05 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004711/0.7797, allocations: 127.8 kB / 1.051 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00693/0.7867, allocations: 6.606 MB / 1.057 GB, free: 7.836 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007246/0.7874, allocations: 35.91 kB / 1.057 GB, free: 7.801 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-05/0.7875, allocations: 40.05 kB / 1.057 GB, free: 7.762 MB / 0.8106 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,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.0005204/0.788, allocations: 249.5 kB / 1.057 GB, free: 7.508 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.7882, allocations: 71.16 kB / 1.057 GB, free: 7.438 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001873/0.79, allocations: 0.8885 MB / 1.058 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.7901, allocations: 4 kB / 1.058 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.7901, allocations: 4.188 kB / 1.058 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.7901, allocations: 0 / 1.058 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002831/0.7929, allocations: 1.728 MB / 1.06 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.793, allocations: 3.938 kB / 1.06 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002632/0.7932, allocations: 63.89 kB / 1.06 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008348/0.7941, allocations: 267.4 kB / 1.06 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.309e-05/0.7941, allocations: 12 kB / 1.06 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006811/0.8009, allocations: 6.584 MB / 1.067 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.801, allocations: 7.875 kB / 1.067 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/0.8026, allocations: 0.9796 MB / 1.068 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003872/0.803, allocations: 188.2 kB / 1.068 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/0.8032, allocations: 15.94 kB / 1.068 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003867/0.8036, allocations: 31.97 kB / 1.068 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.8037, allocations: 43.88 kB / 1.068 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-05/0.8037, allocations: 16 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000536/0.8043, allocations: 387 kB / 1.068 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8043, allocations: 0 / 1.068 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0009553/0.8053, allocations: 224 kB / 1.068 GB, free: 11.3 MB / 0.8262 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001955/0.8055, allocations: 119.2 kB / 1.069 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002288/0.8078, allocations: 1.264 MB / 1.07 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.8078, allocations: 4.125 kB / 1.07 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.809, allocations: 0.8932 MB / 1.071 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.8101, allocations: 202.7 kB / 1.071 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003158/0.8133, allocations: 1.634 MB / 1.073 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001367/0.8147, allocations: 1.009 MB / 1.073 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0005373/0.8152, allocations: 130.1 kB / 1.074 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.8154, allocations: 47.44 kB / 1.074 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of SimCode: time 9.92e-07/0.8154, allocations: 0 / 1.074 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of Templates: time 0.02426/0.8396, allocations: 10.76 MB / 1.084 GB, free: 11.19 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches