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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001522/0.001522, 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.001902/0.001902, allocations: 195.5 kB / 16.53 MB, free: 6.699 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.409/1.409, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.727/2.727, allocations: 469.4 MB / 0.742 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 64.62 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2777, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.0334/0.3111, allocations: 30.77 MB / 1.094 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02013/0.3313, allocations: 13.6 MB / 1.107 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002876/0.3342, allocations: 139.3 kB / 1.107 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.008366/0.3426, allocations: 3.194 MB / 1.11 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.007748/0.3504, allocations: 2.664 MB / 1.113 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.00497/0.3554, allocations: 1.999 MB / 1.115 GB, free: 9.969 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.008691/0.3641, allocations: 7.618 MB / 1.122 GB, free: 2.328 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009562/0.3737, allocations: 8.291 MB / 1.13 GB, free: 9.918 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005725/0.3794, allocations: 3.404 MB / 1.134 GB, free: 6.508 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005196/0.3847, allocations: 3.387 MB / 1.137 GB, free: 3.109 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001411/0.3861, allocations: 0.5938 MB / 1.138 GB, free: 2.516 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003119/0.3892, allocations: 1.494 MB / 1.139 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.002185/0.3914, allocations: 2.37 MB / 1.141 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.00381/0.3953, allocations: 2.878 MB / 1.144 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.008579/0.4038, allocations: 9.387 MB / 1.153 GB, free: 2.34 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.4039, allocations: 7.938 kB / 1.153 GB, free: 2.332 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4039, allocations: 0 / 1.153 GB, free: 2.332 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.000235/0.4041, allocations: 0 / 1.153 GB, free: 2.332 MB / 0.9044 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.009819/0.414, allocations: 5.136 MB / 1.158 GB, free: 13.12 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.414, allocations: 8.031 kB / 1.158 GB, free: 13.11 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008228/0.4148, allocations: 0.6164 MB / 1.159 GB, free: 12.48 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00559/0.4204, allocations: 0.9942 MB / 1.16 GB, free: 11.48 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005623/0.4261, allocations: 2.9 MB / 1.163 GB, free: 8.5 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002338/0.4263, allocations: 312.8 kB / 1.163 GB, free: 8.191 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001001/0.4273, allocations: 423.8 kB / 1.163 GB, free: 7.777 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01407/0.4414, allocations: 6.787 MB / 1.17 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001997/0.4417, allocations: 27.77 kB / 1.17 GB, free: 0.668 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001048/0.4427, allocations: 184 kB / 1.17 GB, free: 500 kB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009043/0.4436, allocations: 372 kB / 1.171 GB, free: 124 kB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009907/0.4536, allocations: 5.11 MB / 1.176 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03614/0.4897, allocations: 30.75 MB / 1.206 GB, free: 9.477 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002075/0.4918, allocations: 1.384 MB / 1.207 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.4936, allocations: 1.329 MB / 1.208 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001019/0.4937, allocations: 13.31 kB / 1.208 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/0.4937, allocations: 55.88 kB / 1.208 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=130): time 3.437e-06/0.4937, allocations: 0 / 1.208 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of matching and sorting (n=199): time 0.09343/0.5872, allocations: 23.07 MB / 1.231 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.613e-05/0.5873, allocations: 73.41 kB / 1.231 GB, free: 15.4 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003409/0.5907, allocations: 2.062 MB / 1.233 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003137/0.591, allocations: 57.7 kB / 1.233 GB, free: 13.26 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00134/0.5924, allocations: 2.01 MB / 1.235 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007304/0.5931, allocations: 0.6738 MB / 1.236 GB, free: 10.55 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008555/0.594, allocations: 412.2 kB / 1.236 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.5941, allocations: 309.1 kB / 1.236 GB, free: 9.832 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002087/0.5962, allocations: 1.433 MB / 1.238 GB, free: 8.395 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00257/0.5988, allocations: 2.01 MB / 1.24 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004784/0.6036, allocations: 3.688 MB / 1.243 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.468e-05/0.6036, allocations: 4 kB / 1.243 GB, free: 2.203 MB / 0.9981 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.4808/1.084, allocations: 5.663 MB / 1.249 GB, free: 167.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/1.084, allocations: 16.09 kB / 1.249 GB, free: 167.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.078e-05/1.085, allocations: 17.31 kB / 1.249 GB, free: 167.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006761/1.091, allocations: 2.1 MB / 1.251 GB, free: 167.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/1.093, allocations: 376.6 kB / 1.251 GB, free: 167.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03384/1.127, allocations: 38.47 MB / 1.289 GB, free: 138.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002402/1.129, allocations: 126.8 kB / 1.289 GB, free: 138.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/1.129, allocations: 92.03 kB / 1.289 GB, free: 138.6 MB / 0.9981 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.002526/1.132, allocations: 1.51 MB / 1.291 GB, free: 137.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005874/1.132, allocations: 280.1 kB / 1.291 GB, free: 137.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01023/1.143, allocations: 5.217 MB / 1.296 GB, free: 135.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/1.143, allocations: 19.25 kB / 1.296 GB, free: 135.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.202e-05/1.143, allocations: 18.59 kB / 1.296 GB, free: 135.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.232e-05/1.143, allocations: 14.53 kB / 1.296 GB, free: 135.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01599/1.159, allocations: 9.668 MB / 1.305 GB, free: 131.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/1.159, allocations: 6.469 kB / 1.305 GB, free: 131.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009044/1.16, allocations: 218.5 kB / 1.306 GB, free: 131.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005754/1.166, allocations: 1.852 MB / 1.307 GB, free: 131.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000304/1.166, allocations: 43.06 kB / 1.307 GB, free: 131 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02809/1.194, allocations: 37.48 MB / 1.344 GB, free: 98.16 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/1.194, allocations: 6.094 kB / 1.344 GB, free: 98.16 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00788/1.202, allocations: 4.914 MB / 1.349 GB, free: 95.14 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00149/1.203, allocations: 0.6129 MB / 1.349 GB, free: 94.68 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004044/1.204, allocations: 52.27 kB / 1.35 GB, free: 94.65 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0014/1.205, allocations: 128.2 kB / 1.35 GB, free: 94.58 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005635/1.206, allocations: 192.6 kB / 1.35 GB, free: 94.47 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/1.206, allocations: 56.72 kB / 1.35 GB, free: 94.45 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001723/1.208, allocations: 1.377 MB / 1.351 GB, free: 93.71 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/1.208, allocations: 0 / 1.351 GB, free: 93.71 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003934/1.212, allocations: 1.048 MB / 1.352 GB, free: 93.62 MB / 0.9981 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.007721/1.219, allocations: 5.535 MB / 1.358 GB, free: 87.94 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01016/1.23, allocations: 7.213 MB / 1.365 GB, free: 80.53 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/1.23, allocations: 4 kB / 1.365 GB, free: 80.53 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.005697/1.235, allocations: 4.402 MB / 1.369 GB, free: 75.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004025/1.239, allocations: 0.9773 MB / 1.37 GB, free: 74.97 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04366/1.283, allocations: 34.12 MB / 1.403 GB, free: 38.41 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002512/1.286, allocations: 3.132 MB / 1.406 GB, free: 35.25 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00179/1.287, allocations: 0.512 MB / 1.407 GB, free: 34.73 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/1.289, allocations: 1.675 MB / 1.408 GB, free: 33.05 MB / 0.9981 GB Notification: Performance of SimCode: time 6.91e-07/1.289, allocations: 0 / 1.408 GB, free: 33.05 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1538/1.443, allocations: 89.23 MB / 1.496 GB, free: 8.887 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11/12.44, allocations: 10.81 kB / 1.496 GB, free: 8.879 MB / 1.061 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