Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",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.001137/0.001137, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.0014, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.36/1.36, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.659/2.659, allocations: 437 MB / 0.7104 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.91 kB / 0.8694 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5998/0.6011, allocations: 151.6 MB / 1.017 GB, free: 2.504 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01794/0.6191, allocations: 14.06 MB / 1.031 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01559/0.6347, allocations: 9.388 MB / 1.04 GB, free: 10.98 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00192/0.6367, allocations: 55.62 kB / 1.04 GB, free: 10.92 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.005146/0.6419, allocations: 1.682 MB / 1.042 GB, free: 9.238 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.005952/0.6479, allocations: 1.53 MB / 1.044 GB, free: 7.707 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002491/0.6504, allocations: 0.7639 MB / 1.044 GB, free: 6.945 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.004547/0.6549, allocations: 2.509 MB / 1.047 GB, free: 4.426 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002851/0.6578, allocations: 1.411 MB / 1.048 GB, free: 2.98 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002279/0.6601, allocations: 1.051 MB / 1.049 GB, free: 1.926 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002292/0.6624, allocations: 1.14 MB / 1.05 GB, free: 0.7812 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0006148/0.6631, allocations: 171.9 kB / 1.05 GB, free: 0.6133 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002347/0.6654, allocations: 0.7916 MB / 1.051 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0009636/0.6664, allocations: 0.6115 MB / 1.052 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001865/0.6683, allocations: 0.9368 MB / 1.053 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00443/0.6727, allocations: 2.737 MB / 1.055 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.6728, allocations: 0 / 1.055 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.984e-06/0.6728, allocations: 0 / 1.055 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001097/0.6729, allocations: 0 / 1.055 GB, free: 11.52 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: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.005139/0.678, allocations: 2.127 MB / 1.057 GB, free: 9.336 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.079e-05/0.6781, allocations: 8.031 kB / 1.057 GB, free: 9.328 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002392/0.6783, allocations: 198.3 kB / 1.058 GB, free: 9.125 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01176/0.6901, allocations: 2.089 MB / 1.06 GB, free: 7.031 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003012/0.6932, allocations: 1.197 MB / 1.061 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.6933, allocations: 90.73 kB / 1.061 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005276/0.6938, allocations: 119.9 kB / 1.061 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006663/0.7005, allocations: 2.682 MB / 1.064 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.556e-05/0.7006, allocations: 11.84 kB / 1.064 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002302/0.7008, allocations: 55.98 kB / 1.064 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007049/0.7016, allocations: 178.1 kB / 1.064 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008339/0.7099, allocations: 2.795 MB / 1.067 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01669/0.7266, allocations: 10.51 MB / 1.077 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007382/0.7341, allocations: 2.531 MB / 1.079 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003419/0.7375, allocations: 1.289 MB / 1.081 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.7377, allocations: 9 kB / 1.081 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.276e-05/0.7377, allocations: 47.56 kB / 1.081 GB, free: 0.6562 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=89): time 3.116e-06/0.7377, allocations: 0 / 1.081 GB, free: 0.6562 MB / 0.8262 GB Notification: Performance of matching and sorting (n=131): time 0.05014/0.7879, allocations: 13.36 MB / 1.094 GB, free: 3.074 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.788, allocations: 64.72 kB / 1.094 GB, free: 3 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001725/0.7897, allocations: 1.113 MB / 1.095 GB, free: 1.871 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0002062/0.7899, allocations: 49.7 kB / 1.095 GB, free: 1.816 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000576/0.7905, allocations: 0.7116 MB / 1.096 GB, free: 1.098 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005591/0.7911, allocations: 457.4 kB / 1.096 GB, free: 0.6445 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005902/0.7917, allocations: 259.5 kB / 1.096 GB, free: 396 kB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.7918, allocations: 365.8 kB / 1.097 GB, free: 24 kB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003575/0.7954, allocations: 1.343 MB / 1.098 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003729/0.7992, allocations: 1.596 MB / 1.099 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007321/0.8065, allocations: 2.998 MB / 1.102 GB, free: 9.891 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.8065, allocations: 0 / 1.102 GB, free: 9.891 MB / 0.8575 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01234/0.8189, allocations: 4.443 MB / 1.107 GB, free: 5.395 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.8189, allocations: 8 kB / 1.107 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.819, allocations: 7.938 kB / 1.107 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005556/0.8245, allocations: 1.451 MB / 1.108 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00224/0.8268, allocations: 439.2 kB / 1.109 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02918/0.856, allocations: 26.69 MB / 1.135 GB, free: 6.926 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002664/0.8587, allocations: 299.5 kB / 1.135 GB, free: 6.633 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002684/0.859, allocations: 63.97 kB / 1.135 GB, free: 6.57 MB / 0.8887 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.0009446/0.8599, allocations: 434.6 kB / 1.135 GB, free: 6.137 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004484/0.8604, allocations: 158.1 kB / 1.136 GB, free: 5.98 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/0.8728, allocations: 4.457 MB / 1.14 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.8728, allocations: 12 kB / 1.14 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-05/0.8729, allocations: 16 kB / 1.14 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/0.8729, allocations: 3.984 kB / 1.14 GB, free: 1.438 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01632/0.8892, allocations: 6.767 MB / 1.147 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/0.8893, allocations: 0 / 1.147 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001886/0.8912, allocations: 383.3 kB / 1.147 GB, free: 10.13 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004859/0.896, allocations: 1.322 MB / 1.148 GB, free: 8.77 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001538/0.8962, allocations: 43.84 kB / 1.148 GB, free: 8.727 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02631/0.9225, allocations: 25.51 MB / 1.173 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.9226, allocations: 7.938 kB / 1.173 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0112/0.9338, allocations: 4.204 MB / 1.177 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/0.9349, allocations: 455 kB / 1.178 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006489/0.9355, allocations: 27.91 kB / 1.178 GB, free: 8.586 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002556/0.9381, allocations: 307.5 kB / 1.178 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005888/0.9387, allocations: 128.7 kB / 1.178 GB, free: 8.16 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001669/0.9389, allocations: 51.91 kB / 1.178 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001574/0.9405, allocations: 0.7526 MB / 1.179 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9405, allocations: 0 / 1.179 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.003029/0.9435, allocations: 0.5703 MB / 1.18 GB, free: 6.785 MB / 0.9356 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.01212/0.9557, allocations: 4.789 MB / 1.184 GB, free: 1.887 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.01227/0.968, allocations: 5.513 MB / 1.19 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.852e-06/0.968, allocations: 0 / 1.19 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.007023/0.975, allocations: 3.484 MB / 1.193 GB, free: 8.551 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002843/0.9779, allocations: 0.5585 MB / 1.194 GB, free: 8.012 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04451/1.022, allocations: 20.33 MB / 1.213 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001773/1.024, allocations: 1.473 MB / 1.215 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001995/1.026, allocations: 425.6 kB / 1.215 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001014/1.027, allocations: 0.6281 MB / 1.216 GB, free: 436 kB / 0.9669 GB Notification: Performance of SimCode: time 9.92e-07/1.027, allocations: 0 / 1.216 GB, free: 436 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7378/1.765, allocations: 51.28 MB / 1.266 GB, free: 219.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/12.7, allocations: 4.906 kB / 1.266 GB, free: 219.6 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches