Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_10_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_10_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.009662/0.009663, allocations: 98.14 kB / 15.73 MB, free: 6.039 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.002198/0.002198, allocations: 195.5 kB / 16.68 MB, free: 5.969 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.677/2.677, allocations: 437.1 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 63.91 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3145, allocations: 151.6 MB / 1.166 GB, free: 7.285 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03878/0.3534, allocations: 35.12 MB / 1.2 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01799/0.3714, allocations: 9.944 MB / 1.21 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004909/0.3763, allocations: 147.2 kB / 1.21 GB, free: 9.926 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.01128/0.3877, allocations: 3.818 MB / 1.214 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00807/0.3958, allocations: 2.149 MB / 1.216 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.005981/0.4018, allocations: 1.953 MB / 1.218 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01017/0.412, allocations: 7.998 MB / 1.226 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01439/0.4264, allocations: 9.517 MB / 1.235 GB, free: 344 kB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006446/0.4329, allocations: 3.424 MB / 1.239 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006675/0.4396, allocations: 3.738 MB / 1.242 GB, free: 9.152 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.002651/0.4423, allocations: 0.6758 MB / 1.243 GB, free: 8.477 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005312/0.4476, allocations: 1.443 MB / 1.244 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.004842/0.4525, allocations: 2.624 MB / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.009441/0.462, allocations: 3.101 MB / 1.25 GB, free: 1.289 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.7177/1.18, allocations: 10.39 MB / 1.26 GB, free: 28.21 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/1.18, allocations: 0.5625 kB / 1.26 GB, free: 28.21 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.833e-06/1.18, allocations: 0 / 1.26 GB, free: 28.21 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0004156/1.18, allocations: 0.7812 kB / 1.26 GB, free: 28.21 MB / 0.9981 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.02886/1.209, allocations: 5.404 MB / 1.265 GB, free: 26.27 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.505e-05/1.209, allocations: 10.81 kB / 1.265 GB, free: 26.27 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005284/1.214, allocations: 0.698 MB / 1.266 GB, free: 26.2 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009159/1.224, allocations: 0.9664 MB / 1.267 GB, free: 25.92 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01055/1.234, allocations: 3.18 MB / 1.27 GB, free: 25.25 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006751/1.235, allocations: 355 kB / 1.27 GB, free: 25.23 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003753/1.239, allocations: 466.9 kB / 1.271 GB, free: 25.23 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02601/1.265, allocations: 7.906 MB / 1.278 GB, free: 24.17 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002844/1.265, allocations: 28.45 kB / 1.279 GB, free: 24.17 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002413/1.268, allocations: 206.2 kB / 1.279 GB, free: 24.17 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005658/1.268, allocations: 369.9 kB / 1.279 GB, free: 24.16 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01581/1.284, allocations: 5.935 MB / 1.285 GB, free: 24.11 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04113/1.325, allocations: 35.95 MB / 1.32 GB, free: 11.43 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003898/1.329, allocations: 2.134 MB / 1.322 GB, free: 10.63 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002379/1.331, allocations: 1.478 MB / 1.324 GB, free: 10.07 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001111/1.332, allocations: 18.12 kB / 1.324 GB, free: 10.07 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.661e-05/1.332, allocations: 59.56 kB / 1.324 GB, free: 10.01 MB / 1.014 GB Notification: Performance of pre-optimization done (n=157): time 3.607e-06/1.332, allocations: 0 / 1.324 GB, free: 10.01 MB / 1.014 GB Notification: Performance of matching and sorting (n=160): time 0.01682/1.348, allocations: 7.533 MB / 1.331 GB, free: 5.711 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/1.349, allocations: 68.25 kB / 1.331 GB, free: 5.648 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003375/1.352, allocations: 1.866 MB / 1.333 GB, free: 4.621 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0004464/1.352, allocations: 52.42 kB / 1.333 GB, free: 4.57 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001641/1.354, allocations: 2.135 MB / 1.335 GB, free: 2.707 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008597/1.355, allocations: 0.5624 MB / 1.336 GB, free: 2.223 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008803/1.356, allocations: 401 kB / 1.336 GB, free: 1.996 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001181/1.356, allocations: 305.1 kB / 1.336 GB, free: 1.695 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001783/1.358, allocations: 1.06 MB / 1.337 GB, free: 1.141 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002404/1.36, allocations: 1.764 MB / 1.339 GB, free: 15.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004512/1.365, allocations: 3.051 MB / 1.342 GB, free: 13.55 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.456e-05/1.365, allocations: 7.531 kB / 1.342 GB, free: 13.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.00696/1.372, allocations: 3.918 MB / 1.346 GB, free: 11.58 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/1.372, allocations: 16.47 kB / 1.346 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.796e-05/1.372, allocations: 23 kB / 1.346 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002441/1.374, allocations: 0.9338 MB / 1.347 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001705/1.376, allocations: 424.7 kB / 1.347 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02203/1.398, allocations: 22.76 MB / 1.369 GB, free: 6.207 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003839/1.402, allocations: 125.5 kB / 1.369 GB, free: 6.141 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004909/1.402, allocations: 93.12 kB / 1.37 GB, free: 6.125 MB / 1.045 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.004803/1.407, allocations: 1.651 MB / 1.371 GB, free: 5.129 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008698/1.408, allocations: 249.7 kB / 1.371 GB, free: 5.008 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005349/1.413, allocations: 3.261 MB / 1.375 GB, free: 3.094 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/1.414, allocations: 22.08 kB / 1.375 GB, free: 3.094 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/1.414, allocations: 7.781 kB / 1.375 GB, free: 3.094 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/1.414, allocations: 11.34 kB / 1.375 GB, free: 3.086 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01437/1.428, allocations: 7.563 MB / 1.382 GB, free: 14.6 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/1.428, allocations: 7.953 kB / 1.382 GB, free: 14.6 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000915/1.429, allocations: 216.4 kB / 1.382 GB, free: 14.55 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002302/1.431, allocations: 0.8938 MB / 1.383 GB, free: 13.95 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002047/1.431, allocations: 32 kB / 1.383 GB, free: 13.91 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01916/1.451, allocations: 22.72 MB / 1.405 GB, free: 5.621 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/1.451, allocations: 8 kB / 1.405 GB, free: 5.613 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005828/1.456, allocations: 3.378 MB / 1.409 GB, free: 2.164 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001731/1.458, allocations: 0.5292 MB / 1.409 GB, free: 1.613 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005705/1.459, allocations: 35.98 kB / 1.409 GB, free: 1.578 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/1.46, allocations: 91.83 kB / 1.409 GB, free: 1.488 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003901/1.46, allocations: 143.2 kB / 1.409 GB, free: 1.355 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/1.461, allocations: 48 kB / 1.409 GB, free: 1.309 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.00171/1.462, allocations: 1.225 MB / 1.411 GB, free: 72 kB / 1.076 GB Notification: Performance of sort global known variables: time 4.31e-07/1.462, allocations: 0 / 1.411 GB, free: 72 kB / 1.076 GB Notification: Performance of remove unused functions: time 0.003828/1.466, allocations: 0.9063 MB / 1.412 GB, free: 15.16 MB / 1.092 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.005636/1.472, allocations: 3.991 MB / 1.415 GB, free: 11.1 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.006701/1.479, allocations: 4.421 MB / 1.42 GB, free: 6.617 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 1.384e-05/1.479, allocations: 5 kB / 1.42 GB, free: 6.613 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.004314/1.483, allocations: 2.996 MB / 1.423 GB, free: 3.496 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00459/1.488, allocations: 0.8258 MB / 1.423 GB, free: 2.695 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04793/1.535, allocations: 25.04 MB / 1.448 GB, free: 8.766 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0043/1.54, allocations: 3.209 MB / 1.451 GB, free: 5.527 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.001986/1.542, allocations: 0.5254 MB / 1.452 GB, free: 4.996 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002312/1.544, allocations: 1.655 MB / 1.453 GB, free: 3.34 MB / 1.123 GB Notification: Performance of SimCode: time 1.012e-06/1.544, allocations: 0 / 1.453 GB, free: 3.34 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1621/1.706, allocations: 70.26 MB / 1.522 GB, free: 14.16 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.27/15.97, allocations: 3.938 kB / 1.522 GB, free: 14.16 MB / 1.201 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches