Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 101.8 kB / 16.35 MB, free: 5.875 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.00138/0.00138, allocations: 191.8 kB / 17.29 MB, free: 5.516 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 14.99 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.419/2.419, allocations: 437.1 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 61.16 kB / 0.8707 GB, free: 1.434 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3198, allocations: 151.6 MB / 1.019 GB, free: 9.836 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.01054/0.3304, allocations: 5.542 MB / 1.024 GB, free: 4.266 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.006308/0.3367, allocations: 2.65 MB / 1.027 GB, free: 1.605 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006514/0.3374, allocations: 23.81 kB / 1.027 GB, free: 1.582 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.00236/0.3399, allocations: 0.681 MB / 1.027 GB, free: 0.9023 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001484/0.3414, allocations: 409.7 kB / 1.028 GB, free: 0.5 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00158/0.343, allocations: 407 kB / 1.028 GB, free: 104 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001352/0.3443, allocations: 0.959 MB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007821/0.3451, allocations: 478.4 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000678/0.3458, allocations: 366.6 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000671/0.3465, allocations: 406.4 kB / 1.03 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.3466, allocations: 48 kB / 1.03 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008291/0.3475, allocations: 363.3 kB / 1.031 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003031/0.3478, allocations: 251.2 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0005025/0.3483, allocations: 342.3 kB / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001201/0.3495, allocations: 0.9773 MB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.3495, allocations: 3.938 kB / 1.032 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3495, allocations: 3.938 kB / 1.032 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.833e-05/0.3496, allocations: 0 / 1.032 GB, free: 11.94 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.00189/0.3515, allocations: 0.9738 MB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.3515, allocations: 8.625 kB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001475/0.353, allocations: 199.8 kB / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.3541, allocations: 0.5257 MB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.977e-05/0.3541, allocations: 41.36 kB / 1.034 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001706/0.3543, allocations: 48.56 kB / 1.034 GB, free: 10.05 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.3555, allocations: 0.8363 MB / 1.035 GB, free: 9.137 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.062e-05/0.3556, allocations: 11.91 kB / 1.035 GB, free: 9.125 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.848e-05/0.3557, allocations: 19.98 kB / 1.035 GB, free: 9.105 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000195/0.3559, allocations: 68.94 kB / 1.035 GB, free: 9.039 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00089/0.3568, allocations: 0.5735 MB / 1.036 GB, free: 8.465 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004601/0.3614, allocations: 4.561 MB / 1.04 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000475/0.3619, allocations: 299.3 kB / 1.04 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003014/0.3622, allocations: 225.3 kB / 1.04 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.3622, allocations: 8.219 kB / 1.04 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/0.3623, allocations: 34.84 kB / 1.041 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=33): time 3.817e-06/0.3623, allocations: 0 / 1.041 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of matching and sorting (n=40): time 0.005426/0.3677, allocations: 2.627 MB / 1.043 GB, free: 232 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.3678, allocations: 55.41 kB / 1.043 GB, free: 164 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005279/0.3683, allocations: 477.9 kB / 1.044 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.3683, allocations: 29.7 kB / 1.044 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002405/0.3686, allocations: 343.6 kB / 1.044 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.3687, allocations: 142 kB / 1.044 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.3689, allocations: 102.2 kB / 1.044 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.369, allocations: 366.8 kB / 1.045 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003504/0.3694, allocations: 237 kB / 1.045 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004669/0.3699, allocations: 413.1 kB / 1.045 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008267/0.3707, allocations: 0.6778 MB / 1.046 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3707, allocations: 4 kB / 1.046 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00161/0.3723, allocations: 0.9176 MB / 1.047 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3724, allocations: 12.09 kB / 1.047 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3724, allocations: 4 kB / 1.047 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007665/0.3731, allocations: 218.4 kB / 1.047 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005074/0.3737, allocations: 115.8 kB / 1.047 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004867/0.3786, allocations: 5.344 MB / 1.052 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000454/0.379, allocations: 28.16 kB / 1.052 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/0.3791, allocations: 24 kB / 1.052 GB, free: 6.125 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0003142/0.3794, allocations: 233.6 kB / 1.053 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.3795, allocations: 67.34 kB / 1.053 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.381, allocations: 0.7771 MB / 1.053 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.381, allocations: 7.938 kB / 1.053 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.381, allocations: 8 kB / 1.053 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3811, allocations: 0 / 1.053 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002448/0.3835, allocations: 1.495 MB / 1.055 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.3835, allocations: 4 kB / 1.055 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003627/0.3839, allocations: 63.94 kB / 1.055 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006536/0.3846, allocations: 206.5 kB / 1.055 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.471e-05/0.3846, allocations: 12 kB / 1.055 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004843/0.3895, allocations: 5.274 MB / 1.06 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3895, allocations: 0 / 1.06 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.3912, allocations: 1.131 MB / 1.061 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000284/0.3915, allocations: 172.4 kB / 1.062 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.371e-05/0.3916, allocations: 11.94 kB / 1.062 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/0.3919, allocations: 23.97 kB / 1.062 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.111e-05/0.392, allocations: 40.02 kB / 1.062 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.392, allocations: 12 kB / 1.062 GB, free: 12 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003374/0.3924, allocations: 310.9 kB / 1.062 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.9e-07/0.3924, allocations: 0 / 1.062 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006873/0.3931, allocations: 172 kB / 1.062 GB, free: 11.53 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001572/0.3932, allocations: 119.5 kB / 1.062 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001642/0.3949, allocations: 1.016 MB / 1.063 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.3949, allocations: 4 kB / 1.063 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0009387/0.3959, allocations: 0.6837 MB / 1.064 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008392/0.3967, allocations: 180.6 kB / 1.064 GB, free: 9.449 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.3988, allocations: 1.256 MB / 1.065 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005349/0.3993, allocations: 0.9533 MB / 1.066 GB, free: 7.164 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003179/0.3997, allocations: 117 kB / 1.066 GB, free: 7.047 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.3998, allocations: 43.36 kB / 1.066 GB, free: 7.004 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.3998, allocations: 0 / 1.066 GB, free: 7.004 MB / 0.8419 GB Notification: Performance of Templates: time 0.501/0.9008, allocations: 8.855 MB / 1.075 GB, free: 59.55 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches