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.001139/0.001139, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001159/0.001159, allocations: 192.3 kB / 16.25 MB, free: 6.621 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.48/1.48, allocations: 222.9 MB / 239.9 MB, free: 4.531 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.709/2.709, allocations: 437 MB / 0.71 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 60.09 kB / 0.8687 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7948/0.796, allocations: 151.6 MB / 1.017 GB, free: 2.703 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.008368/0.8044, allocations: 6.164 MB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005559/0.8101, allocations: 3.157 MB / 1.026 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007521/0.8109, allocations: 27.81 kB / 1.026 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00237/0.8133, allocations: 0.8798 MB / 1.027 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001578/0.8149, allocations: 430 kB / 1.027 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001428/0.8163, allocations: 454.8 kB / 1.028 GB, free: 7.578 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001449/0.8178, allocations: 1.115 MB / 1.029 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001073/0.8189, allocations: 0.7187 MB / 1.029 GB, free: 5.738 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006519/0.8195, allocations: 438.3 kB / 1.03 GB, free: 5.309 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000559/0.8201, allocations: 490.1 kB / 1.03 GB, free: 4.828 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.9e-05/0.8202, allocations: 64 kB / 1.03 GB, free: 4.766 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009967/0.8212, allocations: 487 kB / 1.031 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0003041/0.8215, allocations: 295.2 kB / 1.031 GB, free: 4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003704/0.8219, allocations: 398 kB / 1.031 GB, free: 3.609 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.8232, allocations: 1.207 MB / 1.033 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.8232, allocations: 0 / 1.033 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.804e-06/0.8232, allocations: 0 / 1.033 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.8232, allocations: 0 / 1.033 GB, free: 2.398 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001653/0.8249, allocations: 1.06 MB / 1.034 GB, free: 1.289 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.8249, allocations: 12.03 kB / 1.034 GB, free: 1.277 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001432/0.8264, allocations: 219.7 kB / 1.034 GB, free: 1.062 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007471/0.8271, allocations: 0.5415 MB / 1.034 GB, free: 488 kB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.989e-05/0.8272, allocations: 53.61 kB / 1.034 GB, free: 436 kB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.8273, allocations: 68.22 kB / 1.035 GB, free: 368 kB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.8287, allocations: 1.034 MB / 1.036 GB, free: 15.22 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.046e-05/0.8288, allocations: 7.938 kB / 1.036 GB, free: 15.21 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.741e-05/0.8288, allocations: 27.98 kB / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.073e-05/0.8289, allocations: 73.27 kB / 1.036 GB, free: 15.11 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000965/0.8299, allocations: 0.6918 MB / 1.036 GB, free: 14.41 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004898/0.8348, allocations: 5.745 MB / 1.042 GB, free: 8.242 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008217/0.8356, allocations: 0.5982 MB / 1.043 GB, free: 7.598 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007364/0.8364, allocations: 412.6 kB / 1.043 GB, free: 7.191 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.713e-05/0.8364, allocations: 8.688 kB / 1.043 GB, free: 7.184 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.8365, allocations: 38.55 kB / 1.043 GB, free: 7.137 MB / 0.795 GB Notification: Performance of pre-optimization done (n=41): time 2.405e-06/0.8365, allocations: 0 / 1.043 GB, free: 7.137 MB / 0.795 GB Notification: Performance of matching and sorting (n=42): time 0.004404/0.8409, allocations: 2.061 MB / 1.045 GB, free: 4.98 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/0.841, allocations: 59.34 kB / 1.045 GB, free: 4.91 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004946/0.8415, allocations: 466.7 kB / 1.045 GB, free: 4.445 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.8415, allocations: 33.7 kB / 1.046 GB, free: 4.406 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002548/0.8418, allocations: 391 kB / 1.046 GB, free: 4.016 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.8419, allocations: 145.9 kB / 1.046 GB, free: 3.871 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/0.842, allocations: 110.2 kB / 1.046 GB, free: 3.758 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.8422, allocations: 366.7 kB / 1.046 GB, free: 3.391 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003318/0.8425, allocations: 249.2 kB / 1.047 GB, free: 3.148 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004534/0.843, allocations: 457.6 kB / 1.047 GB, free: 2.605 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008808/0.8439, allocations: 0.7595 MB / 1.048 GB, free: 1.75 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.8439, allocations: 4 kB / 1.048 GB, free: 1.746 MB / 0.795 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001775/0.8457, allocations: 1.065 MB / 1.049 GB, free: 0.6602 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.8457, allocations: 8 kB / 1.049 GB, free: 0.6523 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.8457, allocations: 4.875 kB / 1.049 GB, free: 0.6484 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.8468, allocations: 335.1 kB / 1.049 GB, free: 316 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002931/0.8471, allocations: 95.88 kB / 1.049 GB, free: 220 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007176/0.8542, allocations: 7.52 MB / 1.057 GB, free: 8.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005689/0.8549, allocations: 39.95 kB / 1.057 GB, free: 8.09 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.727e-05/0.8549, allocations: 28 kB / 1.057 GB, free: 8.062 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 (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.0004517/0.8554, allocations: 239.9 kB / 1.057 GB, free: 7.82 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.8555, allocations: 67.19 kB / 1.057 GB, free: 7.754 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.8573, allocations: 0.916 MB / 1.058 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.8573, allocations: 4 kB / 1.058 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.8573, allocations: 4 kB / 1.058 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.8574, allocations: 8.062 kB / 1.058 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002932/0.8603, allocations: 1.712 MB / 1.06 GB, free: 5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.8603, allocations: 4 kB / 1.06 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.8605, allocations: 39.91 kB / 1.06 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009713/0.8615, allocations: 331.2 kB / 1.06 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.52e-05/0.8615, allocations: 8.281 kB / 1.06 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007052/0.8686, allocations: 7.51 MB / 1.067 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.8686, allocations: 4 kB / 1.067 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00167/0.8703, allocations: 1.015 MB / 1.068 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002395/0.8705, allocations: 172.6 kB / 1.069 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.406e-05/0.8706, allocations: 11.98 kB / 1.069 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.8709, allocations: 19.98 kB / 1.069 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.871, allocations: 43.92 kB / 1.069 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.871, allocations: 12 kB / 1.069 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003491/0.8714, allocations: 306.9 kB / 1.069 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8714, allocations: 4 kB / 1.069 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0008506/0.8722, allocations: 203.9 kB / 1.069 GB, free: 10.7 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 (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.000176/0.8724, allocations: 115.2 kB / 1.069 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001897/0.8743, allocations: 1.242 MB / 1.07 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.8743, allocations: 4 kB / 1.07 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.8755, allocations: 0.8618 MB / 1.071 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.8765, allocations: 202.5 kB / 1.071 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.8787, allocations: 1.545 MB / 1.073 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006264/0.8793, allocations: 0.9921 MB / 1.074 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002941/0.8796, allocations: 97.19 kB / 1.074 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.056e-05/0.8797, allocations: 35.44 kB / 1.074 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of SimCode: time 1.713e-06/0.8797, allocations: 0 / 1.074 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of Templates: time 0.01728/0.897, allocations: 10.05 MB / 1.084 GB, free: 11.49 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 -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/jenkins/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