Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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 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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009051/0.0009054, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005617/0.005617, allocations: 170.6 kB / 16.27 MB, free: 6.66 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.22/1.22, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.315/2.315, allocations: 443.4 MB / 0.7176 GB, free: 1.363 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002949/0.000295, allocations: 11.53 kB / 0.8797 GB, free: 41.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.2228, allocations: 155.2 MB / 1.031 GB, free: 4.094 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02411/0.247, allocations: 25.74 MB / 1.056 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01086/0.2579, allocations: 8.001 MB / 1.064 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009366/0.2588, allocations: 103.4 kB / 1.064 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0009215/0.2598, allocations: 0.5194 MB / 1.065 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.002323/0.2621, allocations: 1.493 MB / 1.066 GB, free: 128 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.002339/0.2645, allocations: 1.399 MB / 1.068 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00659/0.2711, allocations: 8.697 MB / 1.076 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01108/0.2822, allocations: 9.154 MB / 1.085 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002393/0.2846, allocations: 1.851 MB / 1.087 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002476/0.287, allocations: 2.464 MB / 1.089 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0002994/0.2874, allocations: 212 kB / 1.089 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001803/0.2892, allocations: 1.201 MB / 1.091 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001266/0.2904, allocations: 1.668 MB / 1.092 GB, free: 5.352 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001525/0.292, allocations: 1.961 MB / 1.094 GB, free: 3.375 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.005383/0.2974, allocations: 7.682 MB / 1.102 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2974, allocations: 0 / 1.102 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2974, allocations: 0 / 1.102 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001074/0.2975, allocations: 0 / 1.102 GB, free: 11.67 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.00541/0.3029, allocations: 3.429 MB / 1.105 GB, free: 8.176 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.303, allocations: 8.031 kB / 1.105 GB, free: 8.168 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006272/0.3036, allocations: 0.5382 MB / 1.106 GB, free: 7.621 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003656/0.3073, allocations: 0.8 MB / 1.106 GB, free: 6.816 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00324/0.3105, allocations: 2.432 MB / 1.109 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.3107, allocations: 271.6 kB / 1.109 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005912/0.3113, allocations: 376.4 kB / 1.109 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007586/0.3189, allocations: 5.992 MB / 1.115 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-05/0.319, allocations: 19.78 kB / 1.115 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003297/0.3193, allocations: 160 kB / 1.115 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004997/0.3198, allocations: 282.9 kB / 1.116 GB, free: 13 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005978/0.3258, allocations: 4.52 MB / 1.12 GB, free: 8.473 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02081/0.3466, allocations: 27.7 MB / 1.147 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.348, allocations: 1.125 MB / 1.148 GB, free: 9.133 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.3492, allocations: 1.023 MB / 1.149 GB, free: 8.109 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 5.737e-05/0.3493, allocations: 13 kB / 1.149 GB, free: 8.094 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.3493, allocations: 47.56 kB / 1.149 GB, free: 8.039 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=110): time 3.817e-06/0.3493, allocations: 0 / 1.149 GB, free: 8.039 MB / 0.9044 GB Notification: Performance of matching and sorting (n=131): time 0.01869/0.368, allocations: 9.674 MB / 1.159 GB, free: 14.15 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.3681, allocations: 68.66 kB / 1.159 GB, free: 14.07 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001544/0.3696, allocations: 1.49 MB / 1.16 GB, free: 12.58 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 9.12e-05/0.3697, allocations: 49.7 kB / 1.16 GB, free: 12.53 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008911/0.3706, allocations: 1.663 MB / 1.162 GB, free: 10.84 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000314/0.3709, allocations: 477.3 kB / 1.162 GB, free: 10.37 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000184/0.3711, allocations: 145.6 kB / 1.162 GB, free: 10.22 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 7.625e-05/0.3712, allocations: 305.1 kB / 1.163 GB, free: 9.918 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/0.3724, allocations: 0.9135 MB / 1.164 GB, free: 9.004 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001475/0.3739, allocations: 1.467 MB / 1.165 GB, free: 7.297 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002823/0.3767, allocations: 2.546 MB / 1.168 GB, free: 4.512 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.3767, allocations: 8 kB / 1.168 GB, free: 4.504 MB / 0.92 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004996/0.3817, allocations: 3.286 MB / 1.171 GB, free: 1.18 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.3818, allocations: 15.94 kB / 1.171 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/0.3818, allocations: 16 kB / 1.171 GB, free: 1.148 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/0.3839, allocations: 0.7338 MB / 1.172 GB, free: 396 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.3853, allocations: 387.3 kB / 1.172 GB, free: 8 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01433/0.3997, allocations: 15.78 MB / 1.187 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.4011, allocations: 107.9 kB / 1.187 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.4013, allocations: 79.77 kB / 1.188 GB, free: 14.84 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,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.002047/0.4033, allocations: 1.314 MB / 1.189 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000312/0.4036, allocations: 197.7 kB / 1.189 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00478/0.4084, allocations: 2.788 MB / 1.192 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.4084, allocations: 16 kB / 1.192 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.4085, allocations: 4 kB / 1.192 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.4085, allocations: 15.97 kB / 1.192 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009123/0.4176, allocations: 6.213 MB / 1.198 GB, free: 4.074 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.4176, allocations: 8 kB / 1.198 GB, free: 4.066 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.4187, allocations: 231.6 kB / 1.198 GB, free: 3.84 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001877/0.4206, allocations: 0.6756 MB / 1.199 GB, free: 3.137 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.484e-05/0.4207, allocations: 31.94 kB / 1.199 GB, free: 3.105 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01371/0.4344, allocations: 15.51 MB / 1.214 GB, free: 2.398 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.4344, allocations: 7.938 kB / 1.214 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005938/0.4404, allocations: 4.004 MB / 1.218 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008421/0.4413, allocations: 458.6 kB / 1.218 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002105/0.4415, allocations: 35.98 kB / 1.218 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000848/0.4423, allocations: 83.83 kB / 1.218 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002769/0.4426, allocations: 116.7 kB / 1.218 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.923e-05/0.4427, allocations: 40 kB / 1.219 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001215/0.4439, allocations: 0.9942 MB / 1.219 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4439, allocations: 4 kB / 1.219 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001897/0.4458, allocations: 0.6836 MB / 1.22 GB, free: 11.86 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,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.005906/0.4517, allocations: 4.608 MB / 1.225 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.004839/0.4566, allocations: 3.495 MB / 1.228 GB, free: 3.523 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.4566, allocations: 0 / 1.228 GB, free: 3.523 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.003025/0.4596, allocations: 2.295 MB / 1.23 GB, free: 1.109 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003825/0.4635, allocations: 0.6196 MB / 1.231 GB, free: 0.4961 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5068/0.9703, allocations: 24.34 MB / 1.255 GB, free: 195.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003502/0.9739, allocations: 2.663 MB / 1.257 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001831/0.9757, allocations: 483.1 kB / 1.258 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001267/0.977, allocations: 1.28 MB / 1.259 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of SimCode: time 1.072e-06/0.977, allocations: 0.5938 kB / 1.259 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07528/1.052, allocations: 54.22 MB / 1.312 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001308/1.052, allocations: 252.3 kB / 1.312 GB, free: 163.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.689/3.742, allocations: 0 / 1.312 GB, free: 163.5 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches