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.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.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.007271/0.007272, allocations: 99.41 kB / 15.73 MB, free: 6.453 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.0015/0.0015, allocations: 190.2 kB / 16.67 MB, free: 6.367 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.35/1.35, 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 11.0.1-master/package.mo): time 2.627/2.627, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.001341, allocations: 67.84 kB / 1.054 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2719, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.016/0.2879, allocations: 14.79 MB / 1.222 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0141/0.302, allocations: 10.35 MB / 1.232 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001392/0.3035, allocations: 59.62 kB / 1.232 GB, free: 0.8633 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00426/0.3078, allocations: 1.685 MB / 1.234 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005439/0.3133, allocations: 1.812 MB / 1.235 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002076/0.3154, allocations: 0.7504 MB / 1.236 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003844/0.3192, allocations: 2.75 MB / 1.239 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00232/0.3216, allocations: 1.427 MB / 1.24 GB, free: 8.395 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002497/0.3241, allocations: 1.519 MB / 1.242 GB, free: 6.871 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002241/0.3263, allocations: 1.167 MB / 1.243 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005753/0.3269, allocations: 160 kB / 1.243 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001909/0.3289, allocations: 0.7877 MB / 1.244 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008136/0.3297, allocations: 0.6115 MB / 1.244 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.00155/0.3312, allocations: 0.9445 MB / 1.245 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003893/0.3351, allocations: 2.761 MB / 1.248 GB, free: 432 kB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3352, allocations: 8 kB / 1.248 GB, free: 424 kB / 0.9981 GB Notification: Performance of FrontEnd: time 1.704e-06/0.3352, allocations: 0 / 1.248 GB, free: 424 kB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.667e-05/0.3353, allocations: 0 / 1.248 GB, free: 424 kB / 0.9981 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.571/0.9063, allocations: 2.172 MB / 1.25 GB, free: 39.13 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.9063, allocations: 9.25 kB / 1.25 GB, free: 39.13 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002259/0.9065, allocations: 192.8 kB / 1.25 GB, free: 39.09 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01106/0.9176, allocations: 2.104 MB / 1.252 GB, free: 38.99 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002877/0.9205, allocations: 1.306 MB / 1.254 GB, free: 38.54 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.085e-05/0.9206, allocations: 87.81 kB / 1.254 GB, free: 38.53 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002168/0.9208, allocations: 121.5 kB / 1.254 GB, free: 38.53 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005077/0.9259, allocations: 2.671 MB / 1.256 GB, free: 38.11 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.989e-05/0.926, allocations: 14.97 kB / 1.256 GB, free: 38.11 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001528/0.9261, allocations: 55.56 kB / 1.256 GB, free: 38.11 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005601/0.9267, allocations: 191.5 kB / 1.257 GB, free: 38.1 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007102/0.9338, allocations: 2.789 MB / 1.259 GB, free: 38.06 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01478/0.9486, allocations: 10.46 MB / 1.27 GB, free: 32.62 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006615/0.9553, allocations: 2.338 MB / 1.272 GB, free: 32.48 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002772/0.9581, allocations: 1.284 MB / 1.273 GB, free: 32.46 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.072e-05/0.9582, allocations: 9.625 kB / 1.273 GB, free: 32.46 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.9582, allocations: 42.53 kB / 1.273 GB, free: 32.41 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=89): time 2.786e-06/0.9582, allocations: 1.125 kB / 1.273 GB, free: 32.41 MB / 0.9981 GB Notification: Performance of matching and sorting (n=153): time 0.05627/1.014, allocations: 16.5 MB / 1.289 GB, free: 28.7 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/1.015, allocations: 72.97 kB / 1.289 GB, free: 28.63 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00155/1.016, allocations: 1.169 MB / 1.29 GB, free: 28.18 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002129/1.016, allocations: 51.42 kB / 1.29 GB, free: 28.12 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004085/1.017, allocations: 0.7514 MB / 1.291 GB, free: 27.53 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000392/1.017, allocations: 0.5095 MB / 1.292 GB, free: 27.13 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005405/1.018, allocations: 291.9 kB / 1.292 GB, free: 27.01 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.348e-05/1.018, allocations: 306.2 kB / 1.292 GB, free: 26.71 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003111/1.021, allocations: 1.507 MB / 1.294 GB, free: 26.18 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003101/1.024, allocations: 1.782 MB / 1.295 GB, free: 25.09 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006241/1.03, allocations: 3.374 MB / 1.299 GB, free: 23.14 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/1.03, allocations: 1.531 kB / 1.299 GB, free: 23.14 MB / 0.9981 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.0118/1.042, allocations: 5.266 MB / 1.304 GB, free: 20.25 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.07e-05/1.042, allocations: 10.97 kB / 1.304 GB, free: 20.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/1.042, allocations: 10.45 kB / 1.304 GB, free: 20.25 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006274/1.048, allocations: 1.882 MB / 1.306 GB, free: 19.27 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001814/1.05, allocations: 415.9 kB / 1.306 GB, free: 19.11 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02415/1.074, allocations: 24.14 MB / 1.33 GB, free: 15.95 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00279/1.077, allocations: 307 kB / 1.33 GB, free: 15.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001927/1.077, allocations: 69.28 kB / 1.33 GB, free: 15.79 MB / 1.014 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.0009457/1.078, allocations: 468.4 kB / 1.331 GB, free: 15.45 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003903/1.079, allocations: 178.1 kB / 1.331 GB, free: 15.36 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01253/1.091, allocations: 5.32 MB / 1.336 GB, free: 12.27 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/1.091, allocations: 15.28 kB / 1.336 GB, free: 12.27 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.255e-05/1.091, allocations: 25.59 kB / 1.336 GB, free: 12.26 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.815e-05/1.091, allocations: 7.969 kB / 1.336 GB, free: 12.25 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01523/1.107, allocations: 7.421 MB / 1.343 GB, free: 5.914 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/1.107, allocations: 4 kB / 1.343 GB, free: 5.91 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001512/1.108, allocations: 352.5 kB / 1.344 GB, free: 5.566 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005591/1.114, allocations: 1.708 MB / 1.345 GB, free: 3.836 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001529/1.114, allocations: 47.97 kB / 1.345 GB, free: 3.789 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02531/1.139, allocations: 23.3 MB / 1.368 GB, free: 11.41 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/1.139, allocations: 4 kB / 1.368 GB, free: 11.41 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01143/1.151, allocations: 4.883 MB / 1.373 GB, free: 6.434 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/1.152, allocations: 494.8 kB / 1.373 GB, free: 5.93 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002818/1.152, allocations: 31.94 kB / 1.373 GB, free: 5.898 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001899/1.154, allocations: 319.5 kB / 1.374 GB, free: 5.586 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004669/1.155, allocations: 149 kB / 1.374 GB, free: 5.441 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/1.155, allocations: 59.95 kB / 1.374 GB, free: 5.383 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0009398/1.156, allocations: 0.786 MB / 1.375 GB, free: 4.598 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.4e-07/1.156, allocations: 0 / 1.375 GB, free: 4.598 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001932/1.158, allocations: 0.664 MB / 1.375 GB, free: 3.934 MB / 1.045 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.01127/1.169, allocations: 5.47 MB / 1.381 GB, free: 14.37 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.01015/1.179, allocations: 5.154 MB / 1.386 GB, free: 9.109 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/1.179, allocations: 0 / 1.386 GB, free: 9.109 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.006534/1.186, allocations: 3.357 MB / 1.389 GB, free: 5.656 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002547/1.188, allocations: 0.5553 MB / 1.389 GB, free: 5.129 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04317/1.231, allocations: 21.85 MB / 1.411 GB, free: 14.82 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001457/1.233, allocations: 1.568 MB / 1.412 GB, free: 13.21 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001423/1.234, allocations: 386.5 kB / 1.413 GB, free: 12.84 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009218/1.235, allocations: 0.6554 MB / 1.413 GB, free: 12.18 MB / 1.092 GB Notification: Performance of SimCode: time 8.22e-07/1.235, allocations: 0 / 1.413 GB, free: 12.18 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1049/1.34, allocations: 60.03 MB / 1.472 GB, free: 0.8398 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.71/20.05, allocations: 7.875 kB / 1.472 GB, free: 0.8359 MB / 1.139 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