Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_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.00528/0.00528, allocations: 100.8 kB / 15.73 MB, free: 6.043 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.001432/0.001432, allocations: 202.2 kB / 16.68 MB, free: 5.965 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.646/2.646, allocations: 482.6 MB / 0.755 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 67.89 kB / 1.083 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2776, allocations: 162.3 MB / 1.242 GB, free: 9.75 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.515/0.7926, allocations: 30.75 MB / 1.272 GB, free: 14.93 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02045/0.8131, allocations: 13.59 MB / 1.285 GB, free: 5.527 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002875/0.816, allocations: 146 kB / 1.285 GB, free: 5.48 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.007623/0.8236, allocations: 3.196 MB / 1.288 GB, free: 3.547 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.007623/0.8313, allocations: 2.658 MB / 1.291 GB, free: 1.922 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.005203/0.8365, allocations: 2.016 MB / 1.293 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01076/0.8473, allocations: 7.613 MB / 1.3 GB, free: 13.38 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009635/0.8569, allocations: 8.232 MB / 1.308 GB, free: 10.03 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005642/0.8626, allocations: 3.417 MB / 1.312 GB, free: 8.551 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005208/0.8678, allocations: 3.388 MB / 1.315 GB, free: 7.055 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.001068/0.8689, allocations: 0.5953 MB / 1.316 GB, free: 7.055 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003216/0.8721, allocations: 1.489 MB / 1.317 GB, free: 6.703 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.002633/0.8748, allocations: 2.367 MB / 1.319 GB, free: 5.703 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.004545/0.8793, allocations: 2.878 MB / 1.322 GB, free: 3.875 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.01166/0.891, allocations: 9.49 MB / 1.332 GB, free: 15.98 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.891, allocations: 0 / 1.332 GB, free: 15.98 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8911, allocations: 0 / 1.332 GB, free: 15.98 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0002242/0.8913, allocations: 0 / 1.332 GB, free: 15.98 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.01145/0.9027, allocations: 5.265 MB / 1.337 GB, free: 12.38 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.9028, allocations: 9.5 kB / 1.337 GB, free: 12.38 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000935/0.9037, allocations: 0.625 MB / 1.337 GB, free: 11.93 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005668/0.9094, allocations: 1.02 MB / 1.338 GB, free: 11.44 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006522/0.9159, allocations: 3.092 MB / 1.341 GB, free: 9.371 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002206/0.9162, allocations: 315.1 kB / 1.342 GB, free: 9.227 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007533/0.9169, allocations: 425.8 kB / 1.342 GB, free: 9.078 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01073/0.9277, allocations: 6.785 MB / 1.349 GB, free: 4.855 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.716e-05/0.9278, allocations: 19.36 kB / 1.349 GB, free: 4.844 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000452/0.9283, allocations: 188.8 kB / 1.349 GB, free: 4.703 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008192/0.9291, allocations: 368.8 kB / 1.349 GB, free: 4.598 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007956/0.937, allocations: 5.114 MB / 1.354 GB, free: 1.957 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03043/0.9675, allocations: 30.58 MB / 1.384 GB, free: 3.301 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00193/0.9694, allocations: 1.399 MB / 1.385 GB, free: 1.895 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/0.9711, allocations: 1.324 MB / 1.387 GB, free: 0.5742 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 8.707e-05/0.9712, allocations: 13.31 kB / 1.387 GB, free: 0.5625 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/0.9712, allocations: 59.8 kB / 1.387 GB, free: 0.4961 MB / 1.076 GB Notification: Performance of pre-optimization done (n=130): time 2.966e-06/0.9713, allocations: 0 / 1.387 GB, free: 0.4961 MB / 1.076 GB Notification: Performance of matching and sorting (n=199): time 0.08559/1.057, allocations: 23.14 MB / 1.409 GB, free: 9.238 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/1.057, allocations: 77.41 kB / 1.409 GB, free: 9.148 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002741/1.06, allocations: 2.063 MB / 1.411 GB, free: 7.07 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0001484/1.06, allocations: 61.64 kB / 1.412 GB, free: 7.004 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001434/1.061, allocations: 2.063 MB / 1.414 GB, free: 4.922 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006148/1.062, allocations: 0.7087 MB / 1.414 GB, free: 4.207 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007346/1.063, allocations: 416.4 kB / 1.415 GB, free: 3.793 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001178/1.063, allocations: 305.1 kB / 1.415 GB, free: 3.492 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002058/1.065, allocations: 1.426 MB / 1.416 GB, free: 2.062 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002504/1.067, allocations: 2.021 MB / 1.418 GB, free: 15.8 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004756/1.072, allocations: 3.692 MB / 1.422 GB, free: 11.86 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-06/1.072, allocations: 7.984 kB / 1.422 GB, free: 11.86 MB / 1.123 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01064/1.083, allocations: 5.67 MB / 1.427 GB, free: 6.117 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/1.083, allocations: 12 kB / 1.427 GB, free: 6.105 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.118e-05/1.083, allocations: 16 kB / 1.427 GB, free: 6.09 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006475/1.089, allocations: 2.096 MB / 1.43 GB, free: 3.938 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/1.091, allocations: 371.4 kB / 1.43 GB, free: 3.574 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03967/1.13, allocations: 38.46 MB / 1.467 GB, free: 10.58 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002402/1.133, allocations: 128 kB / 1.468 GB, free: 10.46 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001926/1.133, allocations: 92 kB / 1.468 GB, free: 10.37 MB / 1.17 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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.002603/1.136, allocations: 1.509 MB / 1.469 GB, free: 8.848 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004432/1.136, allocations: 302.2 kB / 1.469 GB, free: 8.551 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01001/1.146, allocations: 5.212 MB / 1.474 GB, free: 3.266 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/1.146, allocations: 20 kB / 1.475 GB, free: 3.246 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.423e-05/1.146, allocations: 24 kB / 1.475 GB, free: 3.223 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.858e-05/1.146, allocations: 7.969 kB / 1.475 GB, free: 3.215 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0163/1.162, allocations: 9.677 MB / 1.484 GB, free: 9.328 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/1.162, allocations: 7.938 kB / 1.484 GB, free: 9.32 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008074/1.163, allocations: 207.7 kB / 1.484 GB, free: 9.117 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00552/1.169, allocations: 1.85 MB / 1.486 GB, free: 7.211 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001311/1.169, allocations: 40 kB / 1.486 GB, free: 7.172 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03757/1.207, allocations: 37.46 MB / 1.523 GB, free: 15.19 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/1.207, allocations: 8 kB / 1.523 GB, free: 15.18 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008904/1.215, allocations: 4.93 MB / 1.527 GB, free: 10.09 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/1.217, allocations: 0.6243 MB / 1.528 GB, free: 9.449 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003357/1.217, allocations: 51.92 kB / 1.528 GB, free: 9.398 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/1.218, allocations: 131.8 kB / 1.528 GB, free: 9.27 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005266/1.219, allocations: 189.6 kB / 1.528 GB, free: 9.082 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/1.219, allocations: 56 kB / 1.528 GB, free: 9.027 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.001873/1.221, allocations: 1.378 MB / 1.53 GB, free: 7.641 MB / 1.232 GB Notification: Performance of sort global known variables: time 1.11e-07/1.221, allocations: 0 / 1.53 GB, free: 7.641 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.002978/1.224, allocations: 1.047 MB / 1.531 GB, free: 6.594 MB / 1.232 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008953/1.233, allocations: 5.548 MB / 1.536 GB, free: 0.875 MB / 1.232 GB Notification: Performance of simCode: created initialization part: time 0.009673/1.243, allocations: 6.308 MB / 1.542 GB, free: 10.34 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.243, allocations: 0 / 1.542 GB, free: 10.34 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.006402/1.249, allocations: 4.409 MB / 1.547 GB, free: 5.695 MB / 1.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004049/1.253, allocations: 0.9945 MB / 1.548 GB, free: 4.73 MB / 1.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05002/1.303, allocations: 30.8 MB / 1.578 GB, free: 4.875 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004119/1.307, allocations: 3.128 MB / 1.581 GB, free: 1.711 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.001819/1.309, allocations: 0.5159 MB / 1.581 GB, free: 1.191 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002163/1.311, allocations: 1.679 MB / 1.583 GB, free: 15.51 MB / 1.295 GB Notification: Performance of SimCode: time 6.21e-07/1.311, allocations: 0 / 1.583 GB, free: 15.51 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.556/3.868, allocations: 88.12 MB / 1.669 GB, free: 8.48 MB / 1.373 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.34/25.21, allocations: 3 kB / 1.669 GB, free: 8.48 MB / 1.373 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches