Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.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_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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.001561/0.001568, allocations: 115.2 kB / 16.37 MB, free: 6.434 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.001715/0.001715, allocations: 197.1 kB / 17.31 MB, free: 5.777 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.461/1.461, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.578/2.578, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 60.22 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3237, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.00968/0.3334, allocations: 6.82 MB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004897/0.3384, allocations: 3.075 MB / 1.036 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003517/0.3387, allocations: 27.81 kB / 1.036 GB, free: 8.074 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002334/0.3411, allocations: 0.9478 MB / 1.037 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.001375/0.3425, allocations: 0.5011 MB / 1.038 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.3437, allocations: 450.1 kB / 1.038 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001213/0.3449, allocations: 1.224 MB / 1.039 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008438/0.3458, allocations: 0.6662 MB / 1.04 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005042/0.3463, allocations: 470.4 kB / 1.041 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005963/0.3469, allocations: 0.5252 MB / 1.041 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001402/0.347, allocations: 68 kB / 1.041 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006151/0.3477, allocations: 379.2 kB / 1.042 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002832/0.3479, allocations: 307.2 kB / 1.042 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0004237/0.3484, allocations: 449.7 kB / 1.042 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001212/0.3496, allocations: 1.215 MB / 1.043 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.3496, allocations: 4 kB / 1.043 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3496, allocations: 0 / 1.043 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.282e-05/0.3496, allocations: 0 / 1.043 GB, free: 0.8867 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001927/0.3516, allocations: 1.172 MB / 1.045 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.3516, allocations: 12.03 kB / 1.045 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001542/0.3532, allocations: 235.6 kB / 1.045 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.3542, allocations: 0.596 MB / 1.045 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.951e-05/0.3543, allocations: 53.66 kB / 1.045 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.3544, allocations: 76.2 kB / 1.045 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.3559, allocations: 1.085 MB / 1.047 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.356, allocations: 7.938 kB / 1.047 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.725e-05/0.356, allocations: 31.98 kB / 1.047 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001454/0.3562, allocations: 85.25 kB / 1.047 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.3573, allocations: 0.7543 MB / 1.047 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00536/0.3627, allocations: 5.87 MB / 1.053 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009759/0.3637, allocations: 0.5483 MB / 1.054 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004333/0.3641, allocations: 330 kB / 1.054 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.751e-05/0.3642, allocations: 4.438 kB / 1.054 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/0.3642, allocations: 46.92 kB / 1.054 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=47): time 2.574e-06/0.3642, allocations: 0 / 1.054 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.003824/0.368, allocations: 1.986 MB / 1.056 GB, free: 3.262 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.3681, allocations: 55.84 kB / 1.056 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006316/0.3687, allocations: 0.5625 MB / 1.057 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.3688, allocations: 37.7 kB / 1.057 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002844/0.3691, allocations: 422.9 kB / 1.057 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.3692, allocations: 173.6 kB / 1.057 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.3694, allocations: 122.5 kB / 1.057 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3696, allocations: 378.7 kB / 1.058 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000402/0.37, allocations: 277.8 kB / 1.058 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006067/0.3706, allocations: 0.4893 MB / 1.058 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.3716, allocations: 0.8132 MB / 1.059 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3716, allocations: 0 / 1.059 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0018/0.3734, allocations: 1.079 MB / 1.06 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.3735, allocations: 8 kB / 1.06 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.3735, allocations: 12.09 kB / 1.06 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008194/0.3743, allocations: 279.1 kB / 1.061 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004817/0.3748, allocations: 127.8 kB / 1.061 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007139/0.382, allocations: 7.126 MB / 1.068 GB, free: 6.504 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006934/0.3827, allocations: 39.95 kB / 1.068 GB, free: 6.465 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-05/0.3827, allocations: 28 kB / 1.068 GB, free: 6.438 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 (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.0004048/0.3832, allocations: 261.4 kB / 1.068 GB, free: 6.172 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.3833, allocations: 75.19 kB / 1.068 GB, free: 6.098 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00151/0.3848, allocations: 0.8926 MB / 1.069 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.3848, allocations: 4 kB / 1.069 GB, free: 5.18 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3848, allocations: 4 kB / 1.069 GB, free: 5.176 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.3848, allocations: 3.984 kB / 1.069 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002864/0.3877, allocations: 1.717 MB / 1.071 GB, free: 3.363 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3877, allocations: 4.188 kB / 1.071 GB, free: 3.359 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002591/0.388, allocations: 67.95 kB / 1.071 GB, free: 3.293 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007285/0.3887, allocations: 275.1 kB / 1.071 GB, free: 3.012 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.254e-05/0.3887, allocations: 11.94 kB / 1.071 GB, free: 3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5332/0.9219, allocations: 7.116 MB / 1.078 GB, free: 49.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.9219, allocations: 6.406 kB / 1.078 GB, free: 49.3 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.9235, allocations: 0.983 MB / 1.079 GB, free: 49.09 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002932/0.9238, allocations: 194.2 kB / 1.079 GB, free: 49 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.846e-05/0.9239, allocations: 12.86 kB / 1.079 GB, free: 49 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003551/0.9242, allocations: 30.98 kB / 1.079 GB, free: 49 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.9243, allocations: 43.86 kB / 1.079 GB, free: 49 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.418e-05/0.9244, allocations: 15.7 kB / 1.079 GB, free: 49 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000452/0.9248, allocations: 393 kB / 1.079 GB, free: 48.9 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9248, allocations: 0 / 1.079 GB, free: 48.9 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000948/0.9258, allocations: 226.6 kB / 1.08 GB, free: 48.89 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 (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.0001752/0.926, allocations: 116 kB / 1.08 GB, free: 48.81 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002241/0.9282, allocations: 1.278 MB / 1.081 GB, free: 48.18 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.9282, allocations: 1.062 kB / 1.081 GB, free: 48.18 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.9295, allocations: 0.884 MB / 1.082 GB, free: 47.59 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.9308, allocations: 213.8 kB / 1.082 GB, free: 47.54 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.9336, allocations: 1.333 MB / 1.083 GB, free: 46.88 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007111/0.9343, allocations: 1.016 MB / 1.084 GB, free: 46.15 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0004536/0.9348, allocations: 126.8 kB / 1.085 GB, free: 46.14 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.9349, allocations: 46.44 kB / 1.085 GB, free: 46.13 MB / 0.8419 GB Notification: Performance of SimCode: time 6.62e-07/0.9349, allocations: 0 / 1.085 GB, free: 46.13 MB / 0.8419 GB Notification: Performance of Templates: time 0.02678/0.9617, allocations: 11.18 MB / 1.096 GB, free: 45.54 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches