Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",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.001036/0.001036, allocations: 97.95 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.008157/0.008157, allocations: 169.5 kB / 16.26 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.19/1.19, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.316/2.316, allocations: 443.4 MB / 0.7176 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002988/0.0002988, allocations: 8.875 kB / 0.8797 GB, free: 41.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2279, allocations: 155.2 MB / 1.031 GB, free: 4.25 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03077/0.2587, allocations: 33.99 MB / 1.064 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01354/0.2723, allocations: 9.828 MB / 1.074 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001822/0.2741, allocations: 123.3 kB / 1.074 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.2755, allocations: 0.7016 MB / 1.075 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.003543/0.2791, allocations: 1.917 MB / 1.077 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002965/0.2821, allocations: 1.605 MB / 1.078 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.009393/0.2915, allocations: 11.2 MB / 1.089 GB, free: 8.715 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01522/0.3067, allocations: 12.17 MB / 1.101 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003612/0.3103, allocations: 2.408 MB / 1.103 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003578/0.3139, allocations: 3.227 MB / 1.107 GB, free: 6.777 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0004441/0.3144, allocations: 280 kB / 1.107 GB, free: 6.504 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002036/0.3164, allocations: 1.256 MB / 1.108 GB, free: 5.246 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001648/0.3181, allocations: 2.104 MB / 1.11 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.002458/0.3205, allocations: 2.524 MB / 1.113 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.007705/0.3283, allocations: 9.858 MB / 1.122 GB, free: 6.703 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3283, allocations: 4 kB / 1.122 GB, free: 6.699 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.884e-06/0.3283, allocations: 0 / 1.122 GB, free: 6.699 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002177/0.3285, allocations: 0 / 1.122 GB, free: 6.699 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.008063/0.3366, allocations: 4.357 MB / 1.127 GB, free: 2.273 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.3366, allocations: 8.031 kB / 1.127 GB, free: 2.266 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001141/0.3378, allocations: 0.7062 MB / 1.127 GB, free: 1.551 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004117/0.3419, allocations: 0.9626 MB / 1.128 GB, free: 0.582 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004054/0.346, allocations: 2.999 MB / 1.131 GB, free: 13.53 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002026/0.3462, allocations: 357.9 kB / 1.131 GB, free: 13.18 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006306/0.3468, allocations: 468.2 kB / 1.132 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01069/0.3575, allocations: 7.902 MB / 1.14 GB, free: 4.449 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.373e-05/0.3576, allocations: 23.8 kB / 1.14 GB, free: 4.426 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004243/0.3581, allocations: 212 kB / 1.14 GB, free: 4.219 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004451/0.3585, allocations: 369.1 kB / 1.14 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008085/0.3666, allocations: 5.933 MB / 1.146 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02829/0.3949, allocations: 36.28 MB / 1.181 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002818/0.3978, allocations: 2.146 MB / 1.183 GB, free: 4.242 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.3994, allocations: 1.48 MB / 1.185 GB, free: 2.758 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 7.246e-05/0.3995, allocations: 17.31 kB / 1.185 GB, free: 2.738 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.3995, allocations: 55.81 kB / 1.185 GB, free: 2.676 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=157): time 3.055e-06/0.3996, allocations: 0 / 1.185 GB, free: 2.676 MB / 0.9356 GB Notification: Performance of matching and sorting (n=160): time 0.01163/0.4112, allocations: 7.575 MB / 1.192 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.4112, allocations: 64.72 kB / 1.192 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001983/0.4132, allocations: 1.864 MB / 1.194 GB, free: 8.859 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 9.874e-05/0.4133, allocations: 53.7 kB / 1.194 GB, free: 8.801 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.4144, allocations: 2.127 MB / 1.196 GB, free: 6.648 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003718/0.4148, allocations: 0.5584 MB / 1.197 GB, free: 6.082 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/0.415, allocations: 178.1 kB / 1.197 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 7.19e-05/0.4151, allocations: 301.1 kB / 1.197 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.4165, allocations: 1.062 MB / 1.198 GB, free: 4.539 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001739/0.4182, allocations: 1.756 MB / 1.2 GB, free: 2.469 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00319/0.4214, allocations: 3.045 MB / 1.203 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.4214, allocations: 12 kB / 1.203 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.005311/0.4267, allocations: 3.92 MB / 1.207 GB, free: 11.13 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.4268, allocations: 16 kB / 1.207 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-05/0.4268, allocations: 24 kB / 1.207 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002093/0.4289, allocations: 0.9278 MB / 1.208 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.4302, allocations: 431.2 kB / 1.208 GB, free: 9.707 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01593/0.4462, allocations: 21.08 MB / 1.229 GB, free: 3.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.4478, allocations: 135.8 kB / 1.229 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.4479, allocations: 92 kB / 1.229 GB, free: 2.805 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,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%), (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 prepare postOptimizeDAE: time 0.002187/0.4501, allocations: 1.65 MB / 1.231 GB, free: 1.145 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002787/0.4504, allocations: 253 kB / 1.231 GB, free: 0.8945 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004782/0.4552, allocations: 3.264 MB / 1.234 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.4552, allocations: 16 kB / 1.234 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.4552, allocations: 8 kB / 1.234 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.4552, allocations: 11.91 kB / 1.234 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009372/0.4646, allocations: 7.552 MB / 1.242 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.4646, allocations: 4 kB / 1.242 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008138/0.4654, allocations: 220.2 kB / 1.242 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002054/0.4675, allocations: 0.8921 MB / 1.243 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.237e-05/0.4676, allocations: 32 kB / 1.243 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4664/0.934, allocations: 21.03 MB / 1.263 GB, free: 184.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.307e-06/0.934, allocations: 8.281 kB / 1.263 GB, free: 184.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006199/0.9402, allocations: 3.383 MB / 1.267 GB, free: 183.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00118/0.9414, allocations: 0.5322 MB / 1.267 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002687/0.9417, allocations: 34.31 kB / 1.267 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.9428, allocations: 94 kB / 1.267 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005034/0.9433, allocations: 141.9 kB / 1.267 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.9434, allocations: 45.38 kB / 1.267 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002016/0.9454, allocations: 1.224 MB / 1.269 GB, free: 183.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.9454, allocations: 3.062 kB / 1.269 GB, free: 183.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003227/0.9487, allocations: 0.9053 MB / 1.269 GB, free: 183.5 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,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.006231/0.9549, allocations: 3.983 MB / 1.273 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006426/0.9614, allocations: 4.425 MB / 1.278 GB, free: 179 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/0.9614, allocations: 2.062 kB / 1.278 GB, free: 179 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003783/0.9652, allocations: 2.998 MB / 1.281 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004911/0.9701, allocations: 0.761 MB / 1.281 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03862/1.009, allocations: 29.53 MB / 1.31 GB, free: 158.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002816/1.012, allocations: 3.213 MB / 1.313 GB, free: 157.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001981/1.014, allocations: 0.5275 MB / 1.314 GB, free: 157.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/1.015, allocations: 1.656 MB / 1.315 GB, free: 155.7 MB / 0.9981 GB Notification: Performance of SimCode: time 1.633e-06/1.015, allocations: 0 / 1.315 GB, free: 155.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.128/2.143, allocations: 68.31 MB / 1.382 GB, free: 88.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000149/2.143, allocations: 246.6 kB / 1.382 GB, free: 88.43 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.148/5.292, allocations: 0 / 1.382 GB, free: 88.43 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches