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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001285/0.001285, allocations: 108.4 kB / 16.37 MB, free: 5.516 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.001229/0.00123, allocations: 193.3 kB / 17.31 MB, free: 5.16 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.428/1.428, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.583/2.583, allocations: 437.1 MB / 0.7112 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 64.98 kB / 0.8707 GB, free: 1.492 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3284, allocations: 151.6 MB / 1.019 GB, free: 9.898 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.008329/0.3368, allocations: 6.148 MB / 1.025 GB, free: 3.719 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.005241/0.3421, allocations: 3.184 MB / 1.028 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004831/0.3426, allocations: 27.81 kB / 1.028 GB, free: 0.4961 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002335/0.345, allocations: 0.9364 MB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.00118/0.3462, allocations: 477.5 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.3474, allocations: 0.4898 MB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001232/0.3487, allocations: 1.092 MB / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009199/0.3496, allocations: 0.6464 MB / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005387/0.3502, allocations: 446.3 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005837/0.3508, allocations: 474.2 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.191e-05/0.3509, allocations: 56 kB / 1.032 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008755/0.3517, allocations: 487 kB / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002738/0.352, allocations: 291.2 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003931/0.3524, allocations: 401.9 kB / 1.034 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001778/0.3542, allocations: 1.18 MB / 1.035 GB, free: 9.559 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.085e-05/0.3542, allocations: 0 / 1.035 GB, free: 9.559 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.637e-06/0.3543, allocations: 0 / 1.035 GB, free: 9.559 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.826e-05/0.3543, allocations: 0 / 1.035 GB, free: 9.559 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.002217/0.3565, allocations: 1.056 MB / 1.036 GB, free: 8.453 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 8.21e-05/0.3566, allocations: 16.91 kB / 1.036 GB, free: 8.438 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001775/0.3584, allocations: 219.6 kB / 1.036 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.3597, allocations: 0.5921 MB / 1.037 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.753e-05/0.3598, allocations: 49.67 kB / 1.037 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.3599, allocations: 68.36 kB / 1.037 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.3616, allocations: 1.026 MB / 1.038 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.723e-05/0.3616, allocations: 11.94 kB / 1.038 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.108e-05/0.3617, allocations: 27.98 kB / 1.038 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.689e-05/0.3618, allocations: 69.27 kB / 1.038 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000979/0.3628, allocations: 0.6918 MB / 1.038 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005249/0.3681, allocations: 5.733 MB / 1.044 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008139/0.3689, allocations: 0.6006 MB / 1.045 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007248/0.3696, allocations: 412.6 kB / 1.045 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.727e-05/0.3697, allocations: 12.67 kB / 1.045 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.3697, allocations: 46.5 kB / 1.045 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=41): time 2.535e-06/0.3697, allocations: 0 / 1.045 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of matching and sorting (n=42): time 0.004322/0.374, allocations: 2.057 MB / 1.047 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.3741, allocations: 59.41 kB / 1.047 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004832/0.3746, allocations: 466.7 kB / 1.048 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/0.3746, allocations: 29.7 kB / 1.048 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.3749, allocations: 395 kB / 1.048 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.375, allocations: 149.9 kB / 1.048 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.3752, allocations: 110.2 kB / 1.048 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.3753, allocations: 370.8 kB / 1.049 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003295/0.3757, allocations: 241.2 kB / 1.049 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004894/0.3762, allocations: 461 kB / 1.049 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008646/0.377, allocations: 0.7556 MB / 1.05 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.377, allocations: 4 kB / 1.05 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001767/0.3788, allocations: 1.065 MB / 1.051 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.3788, allocations: 8 kB / 1.051 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/0.3789, allocations: 8.875 kB / 1.051 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.3799, allocations: 339 kB / 1.051 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003169/0.3802, allocations: 95.83 kB / 1.051 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006983/0.3872, allocations: 7.509 MB / 1.059 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005979/0.3878, allocations: 28.02 kB / 1.059 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.996e-05/0.3879, allocations: 32 kB / 1.059 GB, free: 15.2 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.0004437/0.3884, allocations: 241.6 kB / 1.059 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.782e-05/0.3885, allocations: 67.19 kB / 1.059 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00171/0.3902, allocations: 0.9159 MB / 1.06 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.3902, allocations: 8 kB / 1.06 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3902, allocations: 4 kB / 1.06 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.3902, allocations: 8.078 kB / 1.06 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002734/0.393, allocations: 1.702 MB / 1.062 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.393, allocations: 15.97 kB / 1.062 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.3932, allocations: 39.97 kB / 1.062 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009124/0.3941, allocations: 323.2 kB / 1.062 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.067e-05/0.3941, allocations: 8 kB / 1.062 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006858/0.401, allocations: 7.506 MB / 1.069 GB, free: 3.688 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.401, allocations: 4 kB / 1.069 GB, free: 3.684 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.4028, allocations: 1.007 MB / 1.07 GB, free: 2.629 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003056/0.4031, allocations: 176.4 kB / 1.071 GB, free: 2.438 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.099e-05/0.4031, allocations: 8.234 kB / 1.071 GB, free: 2.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.4034, allocations: 19.98 kB / 1.071 GB, free: 2.41 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.4035, allocations: 43.94 kB / 1.071 GB, free: 2.367 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.861e-05/0.4036, allocations: 15.98 kB / 1.071 GB, free: 2.352 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003455/0.4039, allocations: 314.9 kB / 1.071 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4039, allocations: 3.938 kB / 1.071 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000799/0.4047, allocations: 195.9 kB / 1.071 GB, free: 1.852 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.0001631/0.4049, allocations: 107.2 kB / 1.071 GB, free: 1.738 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001795/0.4067, allocations: 1.214 MB / 1.072 GB, free: 484 kB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4067, allocations: 0 / 1.072 GB, free: 484 kB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.5464/0.9531, allocations: 0.8565 MB / 1.073 GB, free: 59.94 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.9544, allocations: 211 kB / 1.073 GB, free: 59.94 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002303/0.9567, allocations: 1.221 MB / 1.075 GB, free: 59.44 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006111/0.9574, allocations: 0.9999 MB / 1.076 GB, free: 58.73 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003285/0.9577, allocations: 102 kB / 1.076 GB, free: 58.73 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.984e-05/0.9578, allocations: 39.02 kB / 1.076 GB, free: 58.72 MB / 0.8419 GB Notification: Performance of SimCode: time 9.92e-07/0.9578, allocations: 1.25 kB / 1.076 GB, free: 58.72 MB / 0.8419 GB Notification: Performance of Templates: time 0.02407/0.9819, allocations: 9.976 MB / 1.086 GB, free: 58.34 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=480 -s cvode -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