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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.005191/0.005191, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001348/0.001348, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.266/1.266, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.46/2.46, allocations: 469.4 MB / 0.7422 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.89 kB / 1.064 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.694/0.6953, allocations: 159.1 MB / 1.22 GB, free: 2.254 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.03178/0.7271, allocations: 30.77 MB / 1.25 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.02038/0.7475, allocations: 13.58 MB / 1.263 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00275/0.7503, allocations: 143.2 kB / 1.263 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.007696/0.758, allocations: 3.203 MB / 1.266 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.00714/0.7652, allocations: 2.758 MB / 1.269 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004913/0.7701, allocations: 2.014 MB / 1.271 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.008783/0.7789, allocations: 7.635 MB / 1.278 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009959/0.7889, allocations: 8.238 MB / 1.286 GB, free: 13.61 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005091/0.794, allocations: 3.47 MB / 1.29 GB, free: 10.13 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004937/0.799, allocations: 3.379 MB / 1.293 GB, free: 6.738 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.00173/0.8007, allocations: 0.5938 MB / 1.294 GB, free: 6.145 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00426/0.805, allocations: 1.498 MB / 1.295 GB, free: 4.645 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.003414/0.8084, allocations: 2.37 MB / 1.298 GB, free: 2.27 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.005123/0.8136, allocations: 2.882 MB / 1.3 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.011/0.8246, allocations: 9.48 MB / 1.31 GB, free: 5.863 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.8246, allocations: 0 / 1.31 GB, free: 5.863 MB / 1.029 GB Notification: Performance of FrontEnd: time 9.62e-07/0.8246, allocations: 0 / 1.31 GB, free: 5.863 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0002694/0.8249, allocations: 0 / 1.31 GB, free: 5.863 MB / 1.029 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.01113/0.836, allocations: 5.27 MB / 1.315 GB, free: 0.5078 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.8361, allocations: 12.62 kB / 1.315 GB, free: 0.4961 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000945/0.837, allocations: 0.6125 MB / 1.315 GB, free: 15.87 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005642/0.8427, allocations: 1.024 MB / 1.316 GB, free: 14.84 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006789/0.8495, allocations: 3.093 MB / 1.319 GB, free: 11.67 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002187/0.8497, allocations: 312.8 kB / 1.32 GB, free: 11.36 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000991/0.8507, allocations: 423.9 kB / 1.32 GB, free: 10.95 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01185/0.8626, allocations: 6.803 MB / 1.327 GB, free: 3.852 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001527/0.8628, allocations: 15.89 kB / 1.327 GB, free: 3.836 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006811/0.8635, allocations: 187.9 kB / 1.327 GB, free: 3.652 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008302/0.8643, allocations: 368 kB / 1.327 GB, free: 3.289 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008342/0.8727, allocations: 5.118 MB / 1.332 GB, free: 14.15 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03051/0.9032, allocations: 30.55 MB / 1.362 GB, free: 12.84 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.905, allocations: 1.402 MB / 1.363 GB, free: 11.43 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.9065, allocations: 1.328 MB / 1.365 GB, free: 10.1 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 7.064e-05/0.9066, allocations: 13.31 kB / 1.365 GB, free: 10.09 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.9067, allocations: 51.88 kB / 1.365 GB, free: 10.03 MB / 1.092 GB Notification: Performance of pre-optimization done (n=130): time 2.775e-06/0.9067, allocations: 0 / 1.365 GB, free: 10.03 MB / 1.092 GB Notification: Performance of matching and sorting (n=199): time 0.08401/0.9907, allocations: 23.15 MB / 1.387 GB, free: 2.758 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.9908, allocations: 73.41 kB / 1.388 GB, free: 2.672 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002795/0.9936, allocations: 2.062 MB / 1.39 GB, free: 0.5938 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0001868/0.9938, allocations: 69.64 kB / 1.39 GB, free: 0.5195 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001222/0.995, allocations: 2.063 MB / 1.392 GB, free: 14.44 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005729/0.9956, allocations: 0.7087 MB / 1.392 GB, free: 13.72 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007148/0.9963, allocations: 416.4 kB / 1.393 GB, free: 13.31 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 8.153e-05/0.9964, allocations: 305.1 kB / 1.393 GB, free: 13.01 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001933/0.9983, allocations: 1.426 MB / 1.394 GB, free: 11.58 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002284/1.001, allocations: 2.017 MB / 1.396 GB, free: 9.312 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004386/1.005, allocations: 3.696 MB / 1.4 GB, free: 5.379 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.159e-05/1.005, allocations: 4 kB / 1.4 GB, free: 5.375 MB / 1.123 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01029/1.015, allocations: 5.67 MB / 1.406 GB, free: 15.64 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/1.015, allocations: 12 kB / 1.406 GB, free: 15.62 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/1.015, allocations: 16 kB / 1.406 GB, free: 15.61 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006466/1.022, allocations: 2.091 MB / 1.408 GB, free: 13.46 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001487/1.023, allocations: 387.3 kB / 1.408 GB, free: 13.09 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0364/1.06, allocations: 38.45 MB / 1.445 GB, free: 4.109 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00236/1.062, allocations: 123.9 kB / 1.446 GB, free: 3.988 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/1.063, allocations: 99.98 kB / 1.446 GB, free: 3.891 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.002422/1.065, allocations: 1.505 MB / 1.447 GB, free: 2.375 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006158/1.066, allocations: 298.2 kB / 1.447 GB, free: 2.082 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009715/1.075, allocations: 5.215 MB / 1.453 GB, free: 12.79 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.44e-05/1.075, allocations: 20 kB / 1.453 GB, free: 12.77 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.715e-05/1.075, allocations: 16 kB / 1.453 GB, free: 12.75 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.73e-05/1.075, allocations: 11.97 kB / 1.453 GB, free: 12.74 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01691/1.092, allocations: 9.685 MB / 1.462 GB, free: 2.848 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.642e-05/1.092, allocations: 8 kB / 1.462 GB, free: 2.84 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008096/1.093, allocations: 215.6 kB / 1.462 GB, free: 2.629 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005555/1.099, allocations: 1.838 MB / 1.464 GB, free: 0.7344 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001672/1.099, allocations: 40.19 kB / 1.464 GB, free: 0.6953 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03458/1.134, allocations: 37.47 MB / 1.501 GB, free: 8.688 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/1.134, allocations: 7.938 kB / 1.501 GB, free: 8.68 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008945/1.143, allocations: 4.922 MB / 1.506 GB, free: 3.598 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001578/1.144, allocations: 0.6319 MB / 1.506 GB, free: 2.945 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00062/1.145, allocations: 48.06 kB / 1.506 GB, free: 2.898 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001694/1.146, allocations: 123.8 kB / 1.506 GB, free: 2.777 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005805/1.147, allocations: 201.5 kB / 1.506 GB, free: 2.578 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001492/1.147, allocations: 52 kB / 1.507 GB, free: 2.527 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.002123/1.149, allocations: 1.386 MB / 1.508 GB, free: 1.133 MB / 1.232 GB Notification: Performance of sort global known variables: time 2.1e-07/1.149, allocations: 3.938 kB / 1.508 GB, free: 1.129 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.003804/1.153, allocations: 1.043 MB / 1.509 GB, free: 88 kB / 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.008877/1.162, allocations: 5.552 MB / 1.514 GB, free: 10.36 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.009396/1.171, allocations: 6.303 MB / 1.52 GB, free: 3.832 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 7.453e-06/1.172, allocations: 0.875 kB / 1.52 GB, free: 3.832 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.006322/1.178, allocations: 4.417 MB / 1.525 GB, free: 15.18 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004444/1.182, allocations: 0.9945 MB / 1.526 GB, free: 14.22 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5923/1.775, allocations: 30.76 MB / 1.556 GB, free: 307.3 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004788/1.779, allocations: 3.129 MB / 1.559 GB, free: 306.5 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.001783/1.781, allocations: 0.5214 MB / 1.559 GB, free: 306.5 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001715/1.783, allocations: 1.671 MB / 1.561 GB, free: 306.5 MB / 1.279 GB Notification: Performance of SimCode: time 8.11e-07/1.783, allocations: 0 / 1.561 GB, free: 306.5 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1379/1.921, allocations: 88.11 MB / 1.647 GB, free: 245.5 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.1/16.02, allocations: 9.359 kB / 1.647 GB, free: 245.5 MB / 1.279 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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