Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.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.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",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.007999/0.007999, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.00199/0.00199, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.788/2.788, allocations: 472.7 MB / 0.7453 GB, free: 4.555 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 67.89 kB / 1.069 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2896, allocations: 159.9 MB / 1.225 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.008247/0.2979, allocations: 6.153 MB / 1.231 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.005427/0.3034, allocations: 3.176 MB / 1.234 GB, free: 312 kB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005877/0.304, allocations: 27.81 kB / 1.234 GB, free: 284 kB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00255/0.3066, allocations: 0.9285 MB / 1.235 GB, free: 15.35 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00136/0.308, allocations: 493.5 kB / 1.236 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.3093, allocations: 0.5093 MB / 1.236 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001439/0.3108, allocations: 1.1 MB / 1.237 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001011/0.3118, allocations: 0.6272 MB / 1.238 GB, free: 12.62 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007184/0.3125, allocations: 454.2 kB / 1.238 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007277/0.3133, allocations: 478.1 kB / 1.239 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001532/0.3134, allocations: 60 kB / 1.239 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009439/0.3144, allocations: 483 kB / 1.239 GB, free: 11.17 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003393/0.3147, allocations: 291.2 kB / 1.24 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000545/0.3153, allocations: 405.9 kB / 1.24 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001634/0.3169, allocations: 1.187 MB / 1.241 GB, free: 9.297 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.317, allocations: 3.938 kB / 1.241 GB, free: 9.293 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.232e-06/0.317, allocations: 0 / 1.241 GB, free: 9.293 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.255e-05/0.317, allocations: 0 / 1.241 GB, free: 9.293 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001859/0.3189, allocations: 1.078 MB / 1.242 GB, free: 8.16 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.3189, allocations: 8.031 kB / 1.242 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001473/0.3191, allocations: 118.7 kB / 1.242 GB, free: 8.027 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001554/0.3206, allocations: 228.2 kB / 1.243 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009171/0.3216, allocations: 0.6042 MB / 1.243 GB, free: 7.164 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.865e-05/0.3216, allocations: 45.67 kB / 1.243 GB, free: 7.121 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.3217, allocations: 64.33 kB / 1.243 GB, free: 7.059 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.3231, allocations: 1.041 MB / 1.244 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.414e-05/0.3232, allocations: 3.938 kB / 1.244 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.057e-05/0.3233, allocations: 35.98 kB / 1.244 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.545e-05/0.3233, allocations: 65.27 kB / 1.244 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.3244, allocations: 0.6918 MB / 1.245 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5159/0.8404, allocations: 5.726 MB / 1.251 GB, free: 23.59 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008418/0.8412, allocations: 0.5946 MB / 1.251 GB, free: 23.38 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008013/0.842, allocations: 432.6 kB / 1.252 GB, free: 23.37 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.499e-05/0.8421, allocations: 4.625 kB / 1.252 GB, free: 23.37 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.48e-05/0.8421, allocations: 33.42 kB / 1.252 GB, free: 23.33 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=41): time 2.985e-06/0.8421, allocations: 2.484 kB / 1.252 GB, free: 23.33 MB / 0.9981 GB Notification: Performance of matching and sorting (n=42): time 0.004226/0.8464, allocations: 2.026 MB / 1.254 GB, free: 22.83 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.8464, allocations: 58.56 kB / 1.254 GB, free: 22.77 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004951/0.8469, allocations: 466 kB / 1.254 GB, free: 22.64 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.8469, allocations: 38.73 kB / 1.254 GB, free: 22.61 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002054/0.8471, allocations: 395.5 kB / 1.255 GB, free: 22.43 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.8473, allocations: 158.8 kB / 1.255 GB, free: 22.35 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.8474, allocations: 110.9 kB / 1.255 GB, free: 22.32 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.134e-05/0.8475, allocations: 367.7 kB / 1.255 GB, free: 22.01 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.8479, allocations: 240.9 kB / 1.255 GB, free: 22.01 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004413/0.8484, allocations: 458.7 kB / 1.256 GB, free: 21.76 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007781/0.8491, allocations: 0.7493 MB / 1.257 GB, free: 21.51 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.8491, allocations: 1.844 kB / 1.257 GB, free: 21.51 MB / 0.9981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00167/0.8508, allocations: 1.051 MB / 1.258 GB, free: 21.35 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.8509, allocations: 9.562 kB / 1.258 GB, free: 21.35 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.8509, allocations: 6.531 kB / 1.258 GB, free: 21.35 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009656/0.8519, allocations: 315.4 kB / 1.258 GB, free: 21.32 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002954/0.8522, allocations: 100.3 kB / 1.258 GB, free: 21.31 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005279/0.8574, allocations: 7.484 MB / 1.265 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003714/0.8578, allocations: 37.03 kB / 1.265 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.733e-05/0.8579, allocations: 25.59 kB / 1.265 GB, free: 15.46 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002842/0.8582, allocations: 239.7 kB / 1.266 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.942e-05/0.8583, allocations: 65.44 kB / 1.266 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.8598, allocations: 0.8917 MB / 1.266 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.8598, allocations: 5.969 kB / 1.267 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.8598, allocations: 10.41 kB / 1.267 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.8598, allocations: 2.297 kB / 1.267 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002374/0.8622, allocations: 1.686 MB / 1.268 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.8622, allocations: 0 / 1.268 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.8624, allocations: 48.09 kB / 1.268 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008563/0.8633, allocations: 309.2 kB / 1.269 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.8633, allocations: 12.92 kB / 1.269 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005971/0.8693, allocations: 7.465 MB / 1.276 GB, free: 7.551 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8693, allocations: 1.312 kB / 1.276 GB, free: 7.551 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.8708, allocations: 0.9904 MB / 1.277 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001791/0.871, allocations: 179.5 kB / 1.277 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.412e-05/0.8711, allocations: 8.641 kB / 1.277 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000257/0.8713, allocations: 20.3 kB / 1.277 GB, free: 6.879 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.8714, allocations: 48.45 kB / 1.277 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.8715, allocations: 13.52 kB / 1.277 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003209/0.8718, allocations: 316.3 kB / 1.277 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8718, allocations: 0 / 1.277 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0007608/0.8726, allocations: 192.7 kB / 1.278 GB, free: 6.691 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,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.001704/0.8743, allocations: 1.544 MB / 1.279 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001887/0.8762, allocations: 1.198 MB / 1.28 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.8762, allocations: 0 / 1.28 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000998/0.8772, allocations: 0.8588 MB / 1.281 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009247/0.8781, allocations: 207.2 kB / 1.281 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006911/0.885, allocations: 5.89 MB / 1.287 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000511/0.8856, allocations: 0.9909 MB / 1.288 GB, free: 72 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002991/0.8859, allocations: 104.7 kB / 1.288 GB, free: 48 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005586/0.8865, allocations: 260.8 kB / 1.288 GB, free: 15.99 MB / 1.014 GB Notification: Performance of SimCode: time 7.61e-07/0.8865, allocations: 0 / 1.288 GB, free: 15.99 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04615/0.9326, allocations: 15.4 MB / 1.303 GB, free: 14.76 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.73/10.66, allocations: 9.953 kB / 1.303 GB, free: 14.75 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_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_ThreePhasesBalanced_Lines_Examples_ACLine_L.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches