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.001586/0.001586, allocations: 112.6 kB / 16.37 MB, free: 6 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.001615/0.001615, allocations: 196 kB / 17.31 MB, free: 5.613 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.478/1.478, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.275/2.275, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 64.7 kB / 0.814 GB, free: 32.66 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3411, allocations: 140.4 MB / 0.9511 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01701/0.3581, allocations: 14.05 MB / 0.9649 GB, free: 9.98 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01481/0.373, allocations: 9.388 MB / 0.974 GB, free: 0.5625 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001854/0.3749, allocations: 59.62 kB / 0.9741 GB, free: 0.5039 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.004214/0.3792, allocations: 1.668 MB / 0.9757 GB, free: 14.83 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.004879/0.3841, allocations: 1.553 MB / 0.9772 GB, free: 13.28 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.002241/0.3863, allocations: 0.7559 MB / 0.978 GB, free: 12.52 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.003577/0.3899, allocations: 2.524 MB / 0.9804 GB, free: 9.988 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00176/0.3917, allocations: 1.403 MB / 0.9818 GB, free: 8.551 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00162/0.3933, allocations: 1.051 MB / 0.9828 GB, free: 7.496 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001422/0.3947, allocations: 1.136 MB / 0.9839 GB, free: 6.355 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0002246/0.395, allocations: 164 kB / 0.9841 GB, free: 6.195 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001536/0.3965, allocations: 0.7954 MB / 0.9849 GB, free: 5.398 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0005622/0.3971, allocations: 0.6154 MB / 0.9855 GB, free: 4.781 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.00092/0.398, allocations: 0.9445 MB / 0.9864 GB, free: 3.832 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002864/0.4009, allocations: 2.753 MB / 0.9891 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4009, allocations: 0 / 0.9891 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.034e-06/0.4009, allocations: 0 / 0.9891 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.224e-05/0.401, allocations: 0 / 0.9891 GB, free: 1.07 MB / 0.7637 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.003654/0.4046, allocations: 2.139 MB / 0.9912 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.4047, allocations: 12.03 kB / 0.9912 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01046/0.4151, allocations: 2.093 MB / 0.9932 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003293/0.4185, allocations: 1.287 MB / 0.9945 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.377e-05/0.4186, allocations: 94.72 kB / 0.9946 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.4188, allocations: 124.1 kB / 0.9947 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005926/0.4248, allocations: 2.675 MB / 0.9973 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.625e-05/0.4248, allocations: 11.84 kB / 0.9973 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001805/0.425, allocations: 55.98 kB / 0.9974 GB, free: 8.316 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006412/0.4257, allocations: 182.1 kB / 0.9975 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007487/0.4332, allocations: 2.791 MB / 1 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01618/0.4494, allocations: 10.47 MB / 1.01 GB, free: 10.29 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006544/0.456, allocations: 2.524 MB / 1.013 GB, free: 7.703 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003004/0.459, allocations: 1.284 MB / 1.014 GB, free: 6.414 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 7.9e-05/0.4591, allocations: 12.98 kB / 1.014 GB, free: 6.402 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.4591, allocations: 47.56 kB / 1.014 GB, free: 6.348 MB / 0.795 GB Notification: Performance of pre-optimization done (n=89): time 2.845e-06/0.4592, allocations: 0 / 1.014 GB, free: 6.348 MB / 0.795 GB Notification: Performance of matching and sorting (n=131): time 0.04382/0.503, allocations: 13.35 MB / 1.027 GB, free: 8.777 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.5031, allocations: 64.72 kB / 1.027 GB, free: 8.699 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/0.5046, allocations: 1.117 MB / 1.028 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001695/0.5048, allocations: 49.7 kB / 1.028 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005425/0.5053, allocations: 0.7116 MB / 1.029 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004655/0.5058, allocations: 465.4 kB / 1.03 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004889/0.5063, allocations: 255.5 kB / 1.03 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001577/0.5065, allocations: 361.9 kB / 1.03 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003103/0.5096, allocations: 1.343 MB / 1.032 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003275/0.5129, allocations: 1.604 MB / 1.033 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006701/0.5196, allocations: 2.991 MB / 1.036 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.5196, allocations: 0 / 1.036 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01124/0.5309, allocations: 4.442 MB / 1.04 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/0.5309, allocations: 8.875 kB / 1.04 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.531, allocations: 11.94 kB / 1.04 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005558/0.5365, allocations: 1.427 MB / 1.042 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00196/0.5385, allocations: 435.2 kB / 1.042 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03125/0.5698, allocations: 26.69 MB / 1.068 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00406/0.5739, allocations: 307.6 kB / 1.069 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000309/0.5742, allocations: 59.91 kB / 1.069 GB, free: 12.29 MB / 0.8575 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.001274/0.5755, allocations: 441.4 kB / 1.069 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005096/0.576, allocations: 162.1 kB / 1.069 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01658/0.5926, allocations: 4.453 MB / 1.074 GB, free: 7.184 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-05/0.5927, allocations: 16 kB / 1.074 GB, free: 7.168 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.465e-05/0.5928, allocations: 12 kB / 1.074 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.531e-05/0.5928, allocations: 3.984 kB / 1.074 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02284/0.6156, allocations: 6.783 MB / 1.08 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/0.6157, allocations: 0 / 1.08 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.5798/1.196, allocations: 380.6 kB / 1.081 GB, free: 123.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01006/1.206, allocations: 1.306 MB / 1.082 GB, free: 123.4 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004461/1.206, allocations: 40.16 kB / 1.082 GB, free: 123.4 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04184/1.248, allocations: 25.5 MB / 1.107 GB, free: 103.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.75e-05/1.248, allocations: 2.75 kB / 1.107 GB, free: 103.9 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02037/1.269, allocations: 4.206 MB / 1.111 GB, free: 102.5 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/1.27, allocations: 458.1 kB / 1.111 GB, free: 102.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008294/1.271, allocations: 24.75 kB / 1.111 GB, free: 102.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002922/1.274, allocations: 312.8 kB / 1.112 GB, free: 102.3 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007176/1.275, allocations: 120.8 kB / 1.112 GB, free: 102.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002404/1.275, allocations: 52.22 kB / 1.112 GB, free: 102.2 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001812/1.277, allocations: 0.7543 MB / 1.113 GB, free: 101.9 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.61e-07/1.277, allocations: 0 / 1.113 GB, free: 101.9 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.004015/1.281, allocations: 0.5715 MB / 1.113 GB, free: 101.9 MB / 0.8575 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.0004944/1.282, allocations: 140.6 kB / 1.113 GB, free: 101.8 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.01226/1.294, allocations: 5.133 MB / 1.118 GB, free: 99.23 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/1.294, allocations: 3 kB / 1.118 GB, free: 99.23 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.007556/1.302, allocations: 3.487 MB / 1.122 GB, free: 97.18 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003438/1.305, allocations: 0.5473 MB / 1.122 GB, free: 97.02 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01052/1.316, allocations: 3.995 MB / 1.126 GB, free: 95.42 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001787/1.317, allocations: 1.476 MB / 1.128 GB, free: 94.63 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001921/1.319, allocations: 425.9 kB / 1.128 GB, free: 94.49 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000543/1.32, allocations: 113.3 kB / 1.128 GB, free: 94.48 MB / 0.8575 GB Notification: Performance of SimCode: time 1.153e-06/1.32, allocations: 0 / 1.128 GB, free: 94.48 MB / 0.8575 GB Notification: Performance of Templates: time 0.06693/1.387, allocations: 38.96 MB / 1.166 GB, free: 71.84 MB / 0.8575 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 -s cvode -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