Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.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_RLC,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC",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.008073/0.008079, allocations: 101.4 kB / 15.73 MB, free: 6.004 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.002019/0.00202, allocations: 193.4 kB / 16.67 MB, free: 5.922 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.273/1.273, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.48/2.48, allocations: 469.4 MB / 0.7422 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 55.91 kB / 1.064 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.763/0.7644, allocations: 159.1 MB / 1.22 GB, free: 2.289 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC): time 0.03917/0.8036, allocations: 37.59 MB / 1.256 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02162/0.8253, allocations: 13.04 MB / 1.269 GB, free: 15.49 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00422/0.8296, allocations: 171.1 kB / 1.269 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.01023/0.8399, allocations: 3.897 MB / 1.273 GB, free: 11.42 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007879/0.8478, allocations: 2.6 MB / 1.276 GB, free: 8.805 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.007232/0.855, allocations: 2.708 MB / 1.278 GB, free: 6.094 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01204/0.8671, allocations: 9.591 MB / 1.288 GB, free: 12.48 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01518/0.8823, allocations: 10.51 MB / 1.298 GB, free: 1.832 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007275/0.8897, allocations: 4.066 MB / 1.302 GB, free: 13.75 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007444/0.8971, allocations: 4.385 MB / 1.306 GB, free: 9.355 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.002636/0.8998, allocations: 0.7695 MB / 1.307 GB, free: 8.586 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005123/0.905, allocations: 1.775 MB / 1.309 GB, free: 6.809 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.004751/0.9097, allocations: 3.033 MB / 1.312 GB, free: 3.77 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.007291/0.9171, allocations: 3.591 MB / 1.315 GB, free: 168 kB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.01571/0.9328, allocations: 11.89 MB / 1.327 GB, free: 4.242 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.9329, allocations: 0 / 1.327 GB, free: 4.242 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.404e-06/0.9329, allocations: 0 / 1.327 GB, free: 4.242 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0004053/0.9333, allocations: 0 / 1.327 GB, free: 4.242 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: 1394 * Number of variables: 1394 Notification: Performance of Generate backend data structure: time 0.01912/0.9524, allocations: 6.522 MB / 1.333 GB, free: 13.64 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.9525, allocations: 8.625 kB / 1.333 GB, free: 13.63 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002609/0.9551, allocations: 0.7519 MB / 1.334 GB, free: 12.87 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009424/0.9645, allocations: 1.332 MB / 1.335 GB, free: 11.53 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009498/0.9741, allocations: 3.809 MB / 1.339 GB, free: 7.648 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003987/0.9745, allocations: 378.5 kB / 1.339 GB, free: 7.277 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002251/0.9768, allocations: 0.4963 MB / 1.34 GB, free: 6.781 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02014/0.9969, allocations: 8.894 MB / 1.348 GB, free: 13.54 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002568/0.9972, allocations: 19.83 kB / 1.348 GB, free: 13.52 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001719/0.999, allocations: 223.9 kB / 1.349 GB, free: 13.3 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002413/1.001, allocations: 0.6343 MB / 1.349 GB, free: 12.66 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01467/1.016, allocations: 7.018 MB / 1.356 GB, free: 5.629 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05646/1.073, allocations: 40.11 MB / 1.395 GB, free: 10.29 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004817/1.077, allocations: 2.89 MB / 1.398 GB, free: 7.383 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004293/1.082, allocations: 2.663 MB / 1.401 GB, free: 4.715 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003509/1.082, allocations: 30.09 kB / 1.401 GB, free: 4.684 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.991e-05/1.082, allocations: 72.58 kB / 1.401 GB, free: 4.602 MB / 1.123 GB Notification: Performance of pre-optimization done (n=265): time 5.39e-06/1.082, allocations: 0 / 1.401 GB, free: 4.602 MB / 1.123 GB Notification: Performance of matching and sorting (n=424): time 0.3014/1.384, allocations: 74.79 MB / 1.474 GB, free: 9.156 MB / 1.201 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.643e-05/1.384, allocations: 94.73 kB / 1.474 GB, free: 9.051 MB / 1.201 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003908/1.388, allocations: 2.367 MB / 1.476 GB, free: 6.672 MB / 1.201 GB Notification: Performance of collectPreVariables (initialization): time 0.000833/1.389, allocations: 93.7 kB / 1.476 GB, free: 6.574 MB / 1.201 GB Notification: Performance of collectInitialEqns (initialization): time 0.001649/1.39, allocations: 2.395 MB / 1.479 GB, free: 4.16 MB / 1.201 GB Notification: Performance of collectInitialBindings (initialization): time 0.001894/1.392, allocations: 1.51 MB / 1.48 GB, free: 2.637 MB / 1.201 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002233/1.394, allocations: 0.7256 MB / 1.481 GB, free: 1.898 MB / 1.201 GB Notification: Performance of setup shared object (initialization): time 9.645e-05/1.394, allocations: 305.1 kB / 1.481 GB, free: 1.598 MB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004563/1.399, allocations: 2.999 MB / 1.484 GB, free: 14.59 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005055/1.404, allocations: 3.847 MB / 1.488 GB, free: 10.41 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01008/1.414, allocations: 7.38 MB / 1.495 GB, free: 2.707 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.51e-05/1.414, allocations: 4 kB / 1.495 GB, free: 2.703 MB / 1.217 GB Notification: Performance of matching and sorting (n=551) (initialization): time 0.03092/1.445, allocations: 12.58 MB / 1.507 GB, free: 6.023 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 5.063e-05/1.445, allocations: 17.94 kB / 1.507 GB, free: 6.008 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.102e-05/1.445, allocations: 24 kB / 1.507 GB, free: 5.984 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02552/1.471, allocations: 6.024 MB / 1.513 GB, free: 15.89 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002299/1.473, allocations: 495.2 kB / 1.514 GB, free: 15.41 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7527/2.226, allocations: 73.05 MB / 1.585 GB, free: 289.9 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005237/2.231, allocations: 216.1 kB / 1.585 GB, free: 289.8 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005659/2.232, allocations: 154.6 kB / 1.585 GB, free: 289.8 MB / 1.279 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 (269): * Single equations (assignments): 245 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 24 systems {(2,2,100.0%), (1,1,100.0%), (2,2,100.0%), (1,1,100.0%), (2,2,100.0%), (1,1,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004529/2.236, allocations: 1.993 MB / 1.587 GB, free: 288.9 MB / 1.279 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009901/2.237, allocations: 412.6 kB / 1.588 GB, free: 288.9 MB / 1.279 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02478/2.262, allocations: 12.23 MB / 1.6 GB, free: 284 MB / 1.279 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.239e-05/2.262, allocations: 41.53 kB / 1.6 GB, free: 284 MB / 1.279 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001499/2.262, allocations: 49.53 kB / 1.6 GB, free: 284 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.35e-05/2.262, allocations: 21.84 kB / 1.6 GB, free: 284 MB / 1.279 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03407/2.297, allocations: 19.14 MB / 1.619 GB, free: 276.5 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-05/2.297, allocations: 10.59 kB / 1.619 GB, free: 276.5 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001484/2.298, allocations: 288.6 kB / 1.619 GB, free: 276.4 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01916/2.317, allocations: 5.569 MB / 1.624 GB, free: 273.9 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006618/2.318, allocations: 80 kB / 1.624 GB, free: 273.8 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06301/2.381, allocations: 70.68 MB / 1.693 GB, free: 200.3 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/2.381, allocations: 16 kB / 1.693 GB, free: 200.2 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02611/2.407, allocations: 15.63 MB / 1.709 GB, free: 184.4 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002677/2.41, allocations: 1.057 MB / 1.71 GB, free: 183.3 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00071/2.411, allocations: 83.98 kB / 1.71 GB, free: 183.2 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002507/2.413, allocations: 215.7 kB / 1.71 GB, free: 183 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001313/2.414, allocations: 414.2 kB / 1.71 GB, free: 182.6 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000244/2.415, allocations: 108 kB / 1.71 GB, free: 182.5 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.001759/2.416, allocations: 1.553 MB / 1.712 GB, free: 181 MB / 1.279 GB Notification: Performance of sort global known variables: time 1.51e-07/2.416, allocations: 0 / 1.712 GB, free: 181 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.005635/2.422, allocations: 1.863 MB / 1.714 GB, free: 179.1 MB / 1.279 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2]) * 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 (145): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 24 systems {(2,8,100.0%), (2,8,100.0%), (2,8,100.0%), (3,15,100.0%), (3,15,100.0%), (3,15,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,15,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02567/2.448, allocations: 16.31 MB / 1.73 GB, free: 162.6 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01822/2.466, allocations: 12.25 MB / 1.742 GB, free: 150 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 1.602e-05/2.466, allocations: 4 kB / 1.742 GB, free: 150 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.0132/2.479, allocations: 8.391 MB / 1.75 GB, free: 141.3 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006734/2.486, allocations: 1.194 MB / 1.751 GB, free: 140.2 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09883/2.585, allocations: 54.05 MB / 1.804 GB, free: 84.61 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005954/2.591, allocations: 4.091 MB / 1.808 GB, free: 80.48 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.00251/2.594, allocations: 0.6591 MB / 1.808 GB, free: 79.81 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002445/2.596, allocations: 2.128 MB / 1.811 GB, free: 77.68 MB / 1.279 GB Notification: Performance of SimCode: time 8.51e-07/2.596, allocations: 0 / 1.811 GB, free: 77.68 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2456/2.842, allocations: 150.9 MB / 1.958 GB, free: 8.086 MB / 1.357 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.35/20.19, allocations: 9.672 kB / 1.958 GB, free: 8.078 MB / 1.357 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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_RLC.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches