Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.ACLineMedium,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",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.001176/0.001176, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001184/0.001184, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.201/1.201, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.406/2.406, allocations: 461.8 MB / 0.7342 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 64.34 kB / 0.8985 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2222, allocations: 157.4 MB / 1.052 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01477/0.237, allocations: 14.7 MB / 1.067 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01313/0.2501, allocations: 10.36 MB / 1.077 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.2512, allocations: 55.69 kB / 1.077 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003573/0.2548, allocations: 1.583 MB / 1.078 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003532/0.2583, allocations: 1.61 MB / 1.08 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.2598, allocations: 0.6837 MB / 1.081 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.003297/0.2631, allocations: 3.404 MB / 1.084 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001663/0.2648, allocations: 1.348 MB / 1.085 GB, free: 6.367 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001707/0.2665, allocations: 1.39 MB / 1.087 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001501/0.268, allocations: 1.171 MB / 1.088 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0003197/0.2683, allocations: 96 kB / 1.088 GB, free: 3.703 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001511/0.2698, allocations: 0.8812 MB / 1.089 GB, free: 2.82 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0005269/0.2704, allocations: 0.5451 MB / 1.089 GB, free: 2.273 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000913/0.2713, allocations: 0.8858 MB / 1.09 GB, free: 1.383 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002309/0.2736, allocations: 2.725 MB / 1.093 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2736, allocations: 0 / 1.093 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.022e-06/0.2736, allocations: 4 kB / 1.093 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.621e-05/0.2737, allocations: 4 kB / 1.093 GB, free: 14.64 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003695/0.2774, allocations: 2.174 MB / 1.095 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.2774, allocations: 11.97 kB / 1.095 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002312/0.2777, allocations: 194.4 kB / 1.095 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01058/0.2883, allocations: 2.108 MB / 1.097 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001984/0.2903, allocations: 1.217 MB / 1.098 GB, free: 8.812 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.931e-05/0.2903, allocations: 86.69 kB / 1.098 GB, free: 8.727 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002148/0.2905, allocations: 123.8 kB / 1.098 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004903/0.2955, allocations: 2.67 MB / 1.101 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.627e-05/0.2955, allocations: 11.84 kB / 1.101 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001546/0.2957, allocations: 51.97 kB / 1.101 GB, free: 5.723 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005543/0.2962, allocations: 198.1 kB / 1.101 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006592/0.3028, allocations: 2.787 MB / 1.104 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01229/0.3151, allocations: 10.5 MB / 1.114 GB, free: 7.645 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005583/0.3207, allocations: 2.336 MB / 1.117 GB, free: 5.277 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002686/0.3234, allocations: 1.278 MB / 1.118 GB, free: 4 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-05/0.3235, allocations: 12.98 kB / 1.118 GB, free: 3.984 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.3235, allocations: 43.56 kB / 1.118 GB, free: 3.934 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=89): time 2.094e-06/0.3235, allocations: 0 / 1.118 GB, free: 3.934 MB / 0.8731 GB Notification: Performance of matching and sorting (n=153): time 0.0533/0.3768, allocations: 16.48 MB / 1.134 GB, free: 3.293 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.3769, allocations: 64.72 kB / 1.134 GB, free: 3.215 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.3781, allocations: 1.184 MB / 1.135 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.3783, allocations: 49.7 kB / 1.135 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.00045/0.3787, allocations: 0.7437 MB / 1.136 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.000405/0.3791, allocations: 0.512 MB / 1.136 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005161/0.3796, allocations: 287.5 kB / 1.137 GB, free: 416 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 7.724e-05/0.3797, allocations: 305.1 kB / 1.137 GB, free: 108 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003067/0.3828, allocations: 1.51 MB / 1.139 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00321/0.386, allocations: 1.78 MB / 1.14 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00633/0.3924, allocations: 3.369 MB / 1.144 GB, free: 9.25 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.3924, allocations: 0 / 1.144 GB, free: 9.25 MB / 0.9044 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.0117/0.4041, allocations: 5.276 MB / 1.149 GB, free: 3.934 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.4041, allocations: 8.875 kB / 1.149 GB, free: 3.926 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.4041, allocations: 8 kB / 1.149 GB, free: 3.918 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006546/0.4107, allocations: 1.878 MB / 1.151 GB, free: 2.016 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001667/0.4124, allocations: 411.2 kB / 1.151 GB, free: 1.613 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02449/0.4369, allocations: 22.19 MB / 1.173 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002107/0.439, allocations: 311.4 kB / 1.173 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001537/0.4391, allocations: 67.97 kB / 1.173 GB, free: 9.996 MB / 0.9356 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007293/0.4399, allocations: 453.6 kB / 1.173 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002786/0.4402, allocations: 181.9 kB / 1.174 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/0.4522, allocations: 5.327 MB / 1.179 GB, free: 3.984 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.4522, allocations: 16 kB / 1.179 GB, free: 3.969 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/0.4522, allocations: 20 kB / 1.179 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.4523, allocations: 7.969 kB / 1.179 GB, free: 3.941 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01423/0.4665, allocations: 7.437 MB / 1.186 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.4665, allocations: 4 kB / 1.186 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00142/0.468, allocations: 355.7 kB / 1.186 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005674/0.4736, allocations: 1.7 MB / 1.188 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001283/0.4738, allocations: 47.91 kB / 1.188 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02299/0.4968, allocations: 21.34 MB / 1.209 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/0.4968, allocations: 11.91 kB / 1.209 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01086/0.5077, allocations: 4.889 MB / 1.214 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007459/0.5084, allocations: 494.8 kB / 1.214 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000247/0.5087, allocations: 28 kB / 1.214 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001806/0.5105, allocations: 323.5 kB / 1.215 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003876/0.5109, allocations: 149 kB / 1.215 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001355/0.511, allocations: 51.95 kB / 1.215 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0009291/0.512, allocations: 0.786 MB / 1.216 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.512, allocations: 0 / 1.216 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001678/0.5137, allocations: 0.6602 MB / 1.216 GB, free: 12.39 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0112/0.5249, allocations: 5.475 MB / 1.222 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.009901/0.5348, allocations: 5.132 MB / 1.227 GB, free: 1.582 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.5348, allocations: 0 / 1.227 GB, free: 1.582 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.006213/0.541, allocations: 3.366 MB / 1.23 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002068/0.5431, allocations: 0.5173 MB / 1.23 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4134/0.9565, allocations: 23.6 MB / 1.253 GB, free: 174.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.9576, allocations: 1.573 MB / 1.255 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001467/0.9591, allocations: 385.2 kB / 1.255 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007432/0.9598, allocations: 0.6555 MB / 1.256 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of SimCode: time 8.72e-07/0.9598, allocations: 0 / 1.256 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2252/1.185, allocations: 56.61 MB / 1.311 GB, free: 144.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/1.185, allocations: 250.5 kB / 1.311 GB, free: 144.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.744/3.929, allocations: 0 / 1.311 GB, free: 144.5 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches